bytic / filesystem
filesystem module for bytic framework
Requires
- php: ^8.0.2
- bytic/cache: ^1.0|^2.0
- bytic/config: ^1.0|^2.0
- bytic/container: ^0.9|^1.0|^2.0
- bytic/utility: ^1.0
- league/flysystem: ^3.35
- symfony/filesystem: ^5.4|^6.0|^7.0|^8.0
- symfony/http-foundation: ^5.4|^6.0|^7.0|^8.0
Requires (Dev)
- bytic/http: ^1.0|^2.0
- league/flysystem-aws-s3-v3: ^3.0
- mockery/mockery: ^1.6
- phpunit/phpunit: ^9.6|^10.0|^11.0|^12.0|^13.0
Suggests
- league/flysystem-aws-s3-v3: Required to use the Flysystem S3 driver (^3.0).
Provides
None
Conflicts
None
Replaces
None
README
Requirements
PHP 8.0.2 or newer and Flysystem 3.35.3 or newer are required. Install
league/flysystem-aws-s3-v3:^3.0 to use the S3 driver. Current secure AWS SDK
releases require PHP 8.1 or newer.
Migrating from Flysystem 1 or 2
Existing disk configuration, FileDisk helpers and File operations remain
available. File accepts any Flysystem 3 FilesystemOperator and its write,
update, rename and delete helpers return true on success; update returns
false if the file does not exist. Flysystem 3 reports operation failures by
throwing exceptions, rather than returning false. Its native write, copy,
move and delete methods return void, and writes overwrite existing files.
File::getMetadata() provides type, path, timestamp and size for files and
type and path for directories; other metadata should be retrieved using the
individual Flysystem methods.
Flysystem 1's cached adapter and SFTP adapter are not compatible with Flysystem 3. The old cache configuration is not applied by this package; applications that need caching or SFTP must use Flysystem 3-compatible implementations.