alex-kalanis / kw_files
Accessing stored entries as files on some volume
Installs: 2 353
Dependents: 14
Suggesters: 6
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.4.0
- ext-mbstring: *
- alex-kalanis/kw_paths: >=4.0 <5
- alex-kalanis/kw_storage: >=5.0 <6
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: >=8 <=9
- shipmonk/composer-dependency-analyser: ^1.4
Suggests
- alex-kalanis/kw_storage: Local storage for accessing resources
README
Manage access to storage with emulation of tree structure of real filesystem. Necessary for key-value storages. Also can behave the correct way when storing in classical filesystems.
PHP Installation
composer.phar require alex-kalanis/kw_files
(Refer to Composer Documentation if you are not familiar with composer)
PHP Usage
1.) Use your autoloader (if not already done via Composer autoloader)
2.) Add some external packages with connection to the local or remote services.
3.) Connect the correct processing libraries from "kalanis\kw_files\Processing" into your app. The correct one depends on your storage.
4.) Extend your libraries by interfaces inside the package.
5.) Just call setting and render
Changes
- v2 has difference in interface and class tree building for free name lookup
- v3 has extended support of actions over files, got some things from other repositories
- v4 changed behavior against streams
Notes to self: - all entries starts internally with the separators (usually slashes). It is not necessary and sometimes counter-productive to add them when setting the starting dir. It behaves like a prefix.