php-collective / file-storage
File Storage
Installs: 1 896
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: >=8.1
- ext-fileinfo: *
- ext-json: *
- ext-mbstring: *
- php-collective/file-storage-factories: dev-master as 1.0
- psr/http-message: ^1.0|^2.0
Requires (Dev)
- php-collective/code-sniffer: ^0.2.1
- php-collective/file-storage-image-processor: dev-master as 1.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.3
Suggests
- php-collective/file-storage-image-processor: For image processing
This package is auto-updated.
Last update: 2024-10-27 18:30:00 UTC
README
A framework agnostic file storage system.
Dealing with uploads, storing and managing the files has been very often painful and cumbersome. This library tries to make this more easy and convenient for you - no matter what framework you are using.
This library is pretty much the same as these plugins for Laravel, Yii and Cake, but not tied to any framework or ORM and less tight coupled.
Features
- Store files on almost everything: Local disk, Amazon S3, Dropbox... and many more through the fantastic league/flysystem library.
- Framework-agnostic
- Image processing (optional feature / dependency)
- Image optimization (optional feature / dependency)
- Provides factories for the adapters
- As lite as possible on dependencies
Installation
composer require php-collective/file-storage
Documentation
Please start by reading docs/ in this repository.
Example
Take a look at example.php or even run it:
php example.php
The example should give you an exhaustive overview of the library.