Download the PHP package artpetrov/flysystem-selectel without Composer
On this page you can find all versions of the php package artpetrov/flysystem-selectel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artpetrov/flysystem-selectel
More information about artpetrov/flysystem-selectel
Files in artpetrov/flysystem-selectel
Package flysystem-selectel
Short Description Flysystem adapter for Selectel Cloud Storage
License MIT
Homepage https://github.com/artpetrov/flysystem-selectel
Informations about the package flysystem-selectel
Flysystem Adapter for Selectel Cloud Storage
Requirements
This package requires PHP 7.3.
Installation
You can install the package via composer:
Upgrade
From 1.0* to 1.1.0
New setting container_url
was added. You can set your container's custom domain here (for example, https://static.example.org
) and this option will be used when retrieving fully qualified URLs to files and directories.
Usage
Symfony 4.3 Integration
services.yaml
packages/oneup_flysystem.yaml
Laravel Integration
You can use this adapter with Laravel's Storage System.
If you're running Laravel 5.5+ this package will auto-added to your providers list via auto-discovery feature (requires version 1.2+ of this package).
Laravel <= 5.4
Add ArtPetrov\Flysystem\Selectel\SelectelServiceProvider::class
to your providers list in config/app.php
All Laravel versions
Add selectel
disk to config/filesystems.php
configuration file (disks
section):
container_url
setting (new in version 1.1.0) allows you to override default Selectel's CDN domain (if you have custom domain attached). You may omit this setting if you're using default domain, file URLs will look like http://XXX.selcdn.ru/container_name/path/to/file.txt
, where XXX
- your unique subdomain (X-Storage-Url
header value).
Now you can use Selectel disk as
Also you may want to set selectel
as default disk to ommit disk('selectel')
calls and use storage just as Storage::put('file.txt', 'Hello world')
.
For more info please refer to Laravel's Storage System documentation.
Unsupported methods
Due to the implementation of the Selectel API some methods are missing or may not function as expected.
Visibility management
Selectel provides visibility support only for Containers, but not for files. The change of visibility for the entire container instead of a single file/directory may be confusing for adapter users. Adapter will throw LogicException
on getVisibility
/setVisbility
calls.
Directories management
Currently Selectel Adapter can display and delete only those directories that were created via createDir
method. Dynamic directories (those that were created via write
/writeStream
methods) can not be deleted or listed as directory.
Note on Closing Streams
Selectel Adapter leaves the streams open after consuming them. Make sure that you've closed all streams that you opened.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.