This repository has been archived by the owner on Feb 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
184 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Use the GridFS adapter | ||
|
||
At first you have to install `league/flysystem-gridfs` package via composer: | ||
|
||
```sh | ||
$ composer require league/flysystem-gridfs | ||
``` | ||
|
||
In order to use the GridFS adapter, you first need to define GridFS client service. | ||
This Flysystem adapter works with the MongoDB PHP extension. | ||
|
||
```neon | ||
services: | ||
gridFS.Mongo: | ||
class: Mongo | ||
arguments: | ||
server: mongodb://localhost:27017 | ||
options: | ||
connect: TRUE | ||
gridFS.MongoDB: | ||
class: MongoDB | ||
arguments: | ||
conn: @gridFS.Mongo | ||
name: mongoDBname | ||
gridFS.Client: | ||
class: MongoGridFS | ||
arguments: | ||
db: @gridFS.MongoDB | ||
prefix: fs | ||
``` | ||
|
||
So now is your GridFS client defined and will be created by Nette container generator. So lets define Dropbox adapter | ||
|
||
```neon | ||
flysystem: | ||
dropboxAdapter: | ||
type: gridfs # This is adapter type definition | ||
client: gridFS.Client # Dropbox client service name | ||
``` | ||
|
||
For more info about this adapter, please take a look at the [Flysystem documentation](http://flysystem.thephpleague.com/adapter/gridfs/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Use the NULL adapter | ||
|
||
According to the Flysystem [documentation](http://flysystem.thephpleague.com/adapter/null-test/) the Null/Test adapter acts like `/dev/null`, you can only write to it. Reading from it is never possible. Can be useful for writing tests. | ||
|
||
```neon | ||
flysystem: | ||
localAdapter: | ||
type: null # This is adapter type definition | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Use the Rackspace adapter | ||
|
||
At first you have to install `league/flysystem-rackspace` package via composer: | ||
|
||
```sh | ||
$ composer require league/flysystem-rackspace | ||
``` | ||
|
||
In order to use the Rackspace adapter, you first need to define Rackspace client service. | ||
The Flysystem adapter works with the official [Rackspace package](https://packagist.org/packages/rackspace/php-opencloud). | ||
|
||
```neon | ||
services: | ||
rackspaceCloud: | ||
class: OpenCloud\Rackspace | ||
arguments: | ||
url: "https://identity.api.rackspacecloud.com/v2.0/" | ||
secret: | ||
username: rackspaceCloudUsername | ||
password: rackspaceCloudPassword | ||
``` | ||
|
||
So now is your Rackspace OpenCloud client defined and will be created by Nette container generator. So lets define Rackspace adapter | ||
|
||
```neon | ||
flysystem: | ||
rackspaceAdapter: | ||
type: rackspace # This is adapter type definition | ||
client: rackspaceCloud # Dropbox client service name | ||
prefix: somePrefix # Optional prefix | ||
``` | ||
|
||
For more info about this adapter, please take a look at the [Flysystem documentation](http://flysystem.thephpleague.com/adapter/rackspace/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Use the SFTP adapter | ||
|
||
At first you have to install `league/flysystem-sftp` package via composer: | ||
|
||
```sh | ||
$ composer require league/flysystem-sftp | ||
``` | ||
|
||
Now you can configure your SFTP adapter: | ||
|
||
```neon | ||
flysystem: | ||
ftpAdapter: | ||
type: sftp # This is adapter type definition | ||
host: ftp.yourdomain.com # FTP host name | ||
username: someName # Optional username for connection to host | ||
password: userPassword # Optional password for connection to host | ||
port: 21 # Optional port number. Can be omitted and default value will be used | ||
root: path/to/root # Optional path where should be root for this adapter | ||
timeout: 30 # Optional connection timeout. Default is 30 | ||
privateKey: path/to/key # Optional your private key path | ||
permPublic: 0000 # Optional | ||
permPrivate: 0744 # Optional | ||
``` | ||
|
||
For more info about this adapter, please take a look at the [Flysystem documentation](http://flysystem.thephpleague.com/adapter/sftp/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Use the WebDav adapter | ||
|
||
At first you have to install `league/flysystem-webdav` package via composer: | ||
|
||
```sh | ||
$ composer require league/flysystem-webdav | ||
``` | ||
|
||
In order to use the WebDav adapter, you first need to define WebDav client service. | ||
The Flysystem adapter works with the official [Sabre/Dav package](https://packagist.org/packages/sabre/dav). | ||
|
||
```neon | ||
services: | ||
webdav: | ||
class: Sabre\DAV\Client | ||
arguments: | ||
settings: | ||
baseUri: base uri address | ||
userName: someUsername # Optional | ||
password: usernamePassword # Optional | ||
proxy: proxySettings # Optional | ||
authType: ~ # Optional | ||
encoding: ~ # Optional | ||
``` | ||
|
||
NOTE: For more information about configuration, visit package [manual](http://sabre.io/dav/davclient/) | ||
|
||
So now is your WebDav client defined and will be created by Nette container generator. So lets define WebDav adapter | ||
|
||
```neon | ||
flysystem: | ||
webDavAdapter: | ||
type: webdav # This is adapter type definition | ||
client: webdav # WebDav client service name | ||
prefix: somePrefix # Optional prefix | ||
``` | ||
|
||
For more info about this adapter, please take a look at the [Flysystem documentation](http://flysystem.thephpleague.com/adapter/webdav/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Use the Zip archive adapter | ||
|
||
At first you have to install `league/flysystem-ziparchive` package via composer: | ||
|
||
```sh | ||
$ composer require league/flysystem-ziparchive | ||
``` | ||
|
||
Now you can define your Zip archive adapter: | ||
|
||
```neon | ||
flysystem: | ||
dropboxAdapter: | ||
type: zip # This is adapter type definition | ||
location: path/to/archive.zip # Full path to zip file archive | ||
archive: ZipArchiveObject # Optional zip archive object | ||
prefix: somePrefix # Optional prefix | ||
``` | ||
|
||
For more info about this adapter, please take a look at the [Flysystem documentation](http://flysystem.thephpleague.com/adapter/zip-archive/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters