Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented HttpAdapter with guzzle #244

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"rackspace/php-opencloud": "~1.9.1",
"sabre/dav": "~2.0.2",
"barracuda/copy": "~1.1.4",
"guzzlehttp/guzzle": "~4.0",
"phpseclib/phpseclib": "~0.3.5",
"league/phpunit-coverage-listener" : "~1.1",
"phpspec/phpspec": "~2.0"
Expand All @@ -47,7 +48,8 @@
"phpseclib/phpseclib": "Allows SFTP server storage",
"sabre/dav": "Enables WebDav support",
"rackspace/php-opencloud": "Allows you to use Rackspace Cloud Files",
"barracuda/copy": "Allows you to use Copy.com storage"
"barracuda/copy": "Allows you to use Copy.com storage",
"guzzlehttp/guzzle": "Allows you to use http files (reading only)"
},
"config": {
"bin-dir": "bin"
Expand Down
13 changes: 13 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Want to get started quickly? Check out some of these integrations:
* Dropbox
* Copy
* Ftp
* Http (through guzzle 4)
* Sftp (through phpseclib)
* Zip (through ZipArchive)
* WebDAV (through SabreDAV)
Expand Down Expand Up @@ -173,6 +174,18 @@ $client = new API($consumerKey, $consumerSecret, $accessToken, $tokenSecret);
$filesystem = new Filesystem(new Adapter($client, 'optional/path/prefix'));
```

## Http Setup

```php
use GuzzleHttp\Client;
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Http as Adapter;

$client = new Client;
$url = 'http://example.com'
$filesystem = new Filesystem(new Adapter($url, $client));
```

## FTP Setup

```php
Expand Down
Loading