22
33[ ![ Latest Version] ( https://img.shields.io/github/release/potherca/flysystem-github.svg?style=flat-square )] ( https://github.com/potherca/flysystem-github/releases )
44[ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square )] ( LICENSE.md )
5- [ ![ Build Status] ( https://img.shields.io/travis/potherca/flysystem-github/master .svg?style=flat-square )] ( https://travis-ci.org/potherca/flysystem-github )
6- [ ![ Coverage Status] ( https://img.shields. io/scrutinizer/coverage/g/ potherca/flysystem-github.svg?style=flat-square )] ( https://scrutinizer-ci.com/g /potherca/flysystem-github/code-structure )
5+ [ ![ Build Status] ( https://img.shields.io/travis/potherca/flysystem-github.svg?style=flat-square )] ( https://travis-ci.org/potherca/flysystem-github )
6+ [ ![ Coverage Status] ( https://coveralls. io/repos/ potherca/flysystem-github/badge .svg )] ( https://coveralls.io/github /potherca/flysystem-github )
77[ ![ Quality Score] ( https://img.shields.io/scrutinizer/g/potherca/flysystem-github.svg?style=flat-square )] ( https://scrutinizer-ci.com/g/potherca/flysystem-github )
88[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/potherca/flysystem-github.svg?style=flat-square )] ( https://packagist.org/packages/potherca/flysystem-github )
99
10-
1110## Install
1211
1312Via Composer
@@ -28,27 +27,27 @@ limit.
2827### Basic Usage
2928
3029``` php
31- use Github\Client as GithubClient ;
30+ use Github\Client;
3231use League\Flysystem\Filesystem;
33- use Potherca\Flysystem\Github\Client ;
32+ use Potherca\Flysystem\Github\Api ;
3433use Potherca\Flysystem\Github\GithubAdapter;
3534use Potherca\Flysystem\Github\Settings;
3635
3736$project = 'thephpleague/flysystem';
3837
3938$settings = new Settings($project);
4039
41- $client = new Client (new GithubClient (), $settings);
42- $adapter = new GithubAdapter($client );
40+ $api = new Api (new Client (), $settings);
41+ $adapter = new GithubAdapter($api );
4342$filesystem = new Filesystem($adapter);
4443```
4544
4645### Authentication
4746
4847``` php
49- use Github\Client as GithubClient ;
48+ use Github\Client;
5049use League\Flysystem\Filesystem;
51- use Potherca\Flysystem\Github\Client ;
50+ use Potherca\Flysystem\Github\Api ;
5251use Potherca\Flysystem\Github\GithubAdapter;
5352use Potherca\Flysystem\Github\Settings;
5453
@@ -58,19 +57,19 @@ $credentials = [Settings::AUTHENTICATE_USING_TOKEN, '83347e315b8bb4790a48ed6953a
5857
5958$settings = new Settings($project, $credentials);
6059
61- $client = new Client (new GithubClient (), $settings);
62- $adapter = new GithubAdapter($client );
60+ $api = new Api (new Client (), $settings);
61+ $adapter = new GithubAdapter($api );
6362$filesystem = new Filesystem($adapter);
6463```
6564
6665### Cache Usage
6766
6867``` php
69- use Github\Client as GithubClient ;
68+ use Github\Client;
7069use Github\HttpClient\CachedHttpClient as CachedClient;
7170use Github\HttpClient\Cache\FilesystemCache as Cache;
7271use League\Flysystem\Filesystem;
73- use Potherca\Flysystem\Github\Client ;
72+ use Potherca\Flysystem\Github\Api ;
7473use Potherca\Flysystem\Github\GithubAdapter;
7574use Potherca\Flysystem\Github\Settings;
7675
@@ -82,8 +81,8 @@ $cache = new Cache('/tmp/github-api-cache')
8281$cacheClient = new CachedClient();
8382$cacheClient->setCache($cache);
8483
85- $client = new Client ($cacheClient, $settings);
86- $adapter = new GithubAdapter($client );
84+ $api = new Api ($cacheClient, $settings);
85+ $adapter = new GithubAdapter($api );
8786$filesystem = new Filesystem($adapter);
8887
8988```
@@ -94,13 +93,17 @@ $filesystem = new Filesystem($adapter);
9493$ composer test
9594```
9695
96+ ## Security
97+
98+ If you discover any security related issues, please email
[email protected] instead of using the issue tracker.
99+
97100## Contributing
98101
99102Please see [ CONTRIBUTING] ( CONTRIBUTING.md ) for details.
100103
101- ## Security
104+ ## Change Log
102105
103- If you discover any security related issues, please email [email protected] instead of using the issue tracker .
106+ Please see [ CHANGELOG ] ( CHANGELOG.md ) for details .
104107
105108## Credits
106109
0 commit comments