Download the PHP package webalternatif/flysystem-openstack-swift without Composer
On this page you can find all versions of the php package webalternatif/flysystem-openstack-swift. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webalternatif/flysystem-openstack-swift
More information about webalternatif/flysystem-openstack-swift
Files in webalternatif/flysystem-openstack-swift
Package flysystem-openstack-swift
Short Description Flysystem v2 adapter for OpenStack Swift
License MIT
Informations about the package flysystem-openstack-swift
Flysystem v3 OpenStack Swift adapter
A Flysystem v3 adapter for OpenStack Swift, using
php-opencloud/openstack
.
If you're looking for a Flysystem v1 adapter, see
chrisnharvey/flysystem-openstack-swift
.
Installation
Usage
Uploading large objects
In order to use the createLargeObject
method of the underlying OpenStack
library to upload large objects (which is mandatory for files over 5 GB),
you must use the writeStream
method and define the segment_size
config
option.
The segment_container
option is also available if you want to upload segments
in another container.
Example
Tests
This library uses the FilesystemAdapterTestCase
provided by
league/flysystem-adapter-test-utilities
, so it performs integration tests
that need a real OpenStack Swift container.
To run tests, duplicate the phpunit.xml.dist
file into phpunit.xml
and fill
all the environment variables, then run:
This will run Psalm and PHPUnit, but you can run them individually like this:
All versions of flysystem-openstack-swift with dependencies
php-opencloud/openstack Version ^3.1
league/flysystem Version ^3.0