Download the PHP package chialab/object-storage without Composer
On this page you can find all versions of the php package chialab/object-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chialab/object-storage
More information about chialab/object-storage
Files in chialab/object-storage
Package object-storage
Short Description A collection of adapters for various object storage services.
License MIT
Informations about the package object-storage
PHP Object Storage
This library provides a PHP implementation for using various object storage backends.
Installation
You can install this library using composer:
To use AWS S3 as a backend storage, the SDK is also needed:
Adapters
The plugin currently provides the following adapters.
You can create other adapters by implementing MultipartUploadInterface
.
FilesystemAdapter
This adapter uses the filesystem to store objects.
Takes an ordered array of arguments:
- path to the root files folder
- path to the temporary folder where multipart uploads are stored until finalization
- base for object URLs from which the webserver serves the files
- an optional umask for created files (defaults to octal
0077
)
S3Adapter
This adapter uses an AWS S3 bucket to store objects.
Takes an ordered array of arguments:
- an
Aws\S3\S3Client
instance - the name of the bucket
- an optional key prefix to use for all files (defaults to empty)
- an optional custom base for object URLs (defaults to empty)
InMemoryAdapter
This adapter uses volatile memory to store objects.
Takes only one argument:
- base for object URLs
All versions of object-storage with dependencies
guzzlehttp/promises Version ^1.5
psr/http-message Version ^1.0
guzzlehttp/psr7 Version ^2.2
webmozart/assert Version ^1.10
aws/aws-sdk-php Version ^3.222