alex-kalanis/kw_files

Accessing stored entries as files on some volume

v4.0.2 2024-04-20 21:35 UTC

This package is auto-updated.

Last update: 2024-04-20 21:57:32 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version Minimum PHP Version Downloads License Code Coverage

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.