sj-i / php-fuse
PHP FFI bindings for FUSE
Installs: 1 683
Dependents: 2
Suggesters: 0
Security: 0
Stars: 61
Watchers: 4
Forks: 5
Open Issues: 14
Requires
- php: ^7.4|^8.0
- ext-ffi: *
- psr/log: ^1.1
- sj-i/phpdoc-type-reader: 0.1.0
- sj-i/typed-cdata: 0.0.4
Requires (Dev)
- jetbrains/phpstorm-stubs: dev-master
- php-coveralls/php-coveralls: 2.4.3
- phpunit/phpunit: 9.5.9
- squizlabs/php_codesniffer: 3.6.0
- vimeo/psalm: 4.9.3
- dev-master
- v0.3.0
- v0.2.0
- v0.1.0
- v0.0.1
- dev-renovate/phpunit-phpunit-9.x
- dev-renovate/squizlabs-php_codesniffer-3.x
- dev-renovate/vimeo-psalm-5.x
- dev-renovate/actions-checkout-4.x
- dev-renovate/actions-cache-4.x
- dev-renovate/php-coveralls-php-coveralls-2.x
- dev-renovate/sj-i-typed-cdata-0.x
- dev-renovate/sj-i-phpdoc-type-reader-0.x
- dev-renovate/psr-log-3.x
- dev-renovate/vimeo-psalm-4.x
- dev-renovate/actions-cache-3.x
- dev-renovate/actions-checkout-3.x
This package is auto-updated.
Last update: 2024-10-19 11:06:50 UTC
README
PHP FFI bindings for libfuse.
You can write your own filesystems in PHP.
Installation
composer require sj-i/php-fuse
Requirements
- PHP 7.4+ (NTS / ZTS)
- 64bit Linux x86_64
- FFI extension
- libfuse(currently based on 2.9.9)
Documentation
- Currently, no documentation is provided. :-(
- If you want to write a filesystem in PHP by using this library, see examples in this repository and the libfuse API documentation for now.
Todo
- bump libfuse to 3.9
- add more tests
- add documentation
- support multithreading
LICENSE
- MIT
Example
mkdir /tmp/example php example/dummy_file.php
$ ls -la /tmp/example/
total 180
drwxr-xr-x 2 sji sji 0 1月 1 1970 .
drwxrwxrwt 25 root root 180224 12月 28 07:14 ..
-rwxrwxrwx 1 sji sji 20 1月 1 1970 example
$ cat /tmp/example/example
hello FUSE from PHP
$ umount /tmp/example