Skip to content

Commit 4151b4b

Browse files
Update README.md
1 parent c541be5 commit 4151b4b

File tree

1 file changed

+5
-43
lines changed

1 file changed

+5
-43
lines changed

README.md

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,22 @@
1-
# Dropbox Provider for OAuth 2.0 Client
1+
# Payping Provider for OAuth 2.0 Client
22

3-
[![Latest Version](https://img.shields.io/github/release/stevenmaguire/oauth2-dropbox.svg?style=flat-square)](https://github.com/stevenmaguire/oauth2-dropbox/releases)
4-
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
5-
[![Build Status](https://img.shields.io/travis/stevenmaguire/oauth2-dropbox/master.svg?style=flat-square)](https://travis-ci.org/stevenmaguire/oauth2-dropbox)
6-
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/stevenmaguire/oauth2-dropbox.svg?style=flat-square)](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-dropbox/code-structure)
7-
[![Quality Score](https://img.shields.io/scrutinizer/g/stevenmaguire/oauth2-dropbox.svg?style=flat-square)](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-dropbox)
8-
[![Total Downloads](https://img.shields.io/packagist/dt/stevenmaguire/oauth2-dropbox.svg?style=flat-square)](https://packagist.org/packages/stevenmaguire/oauth2-dropbox)
9-
10-
This package provides Dropbox OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).
3+
This package provides Payping OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).
114

125
## Installation
136

147
To install, use composer:
158

169
```
17-
composer require stevenmaguire/oauth2-dropbox
18-
```
19-
20-
**Note:** Due API deprecation, we dropped support to Dropbox API v1. If you need use v1, please use `^2.0.0` version constraint:
21-
22-
```
23-
composer require "stevenmaguire/oauth2-dropbox:^2.0.0"
10+
composer require flotfeali/oauth2-payping-client
2411
```
25-
2612
## Usage
2713

28-
Usage is the same as The League's OAuth client, using `\Stevenmaguire\OAuth2\Client\Provider\Dropbox` as the provider.
14+
Usage is the same as The League's OAuth client, using `\Stevenmaguire\OAuth2\Client\Provider\PayPing` as the provider.
2915

3016
### Authorization Code Flow
3117

3218
```php
33-
$provider = new Stevenmaguire\OAuth2\Client\Provider\Dropbox([
19+
$provider = new PayPing\OAuth2\Client\Provider\PayPing([
3420
'clientId' => '{dropbox-client-id}',
3521
'clientSecret' => '{dropbox-client-secret}',
3622
'redirectUri' => 'https://example.com/callback-url'
@@ -76,27 +62,3 @@ if (!isset($_GET['code'])) {
7662
echo $token->getToken();
7763
}
7864
```
79-
80-
## Refreshing a Token
81-
Dropbox's OAuth implementation does not use refresh tokens. Access tokens are valid until a user revokes access manually, or until an app deauthorizes itself.
82-
83-
## Testing
84-
85-
``` bash
86-
$ ./vendor/bin/phpunit
87-
```
88-
89-
## Contributing
90-
91-
Please see [CONTRIBUTING](https://github.com/stevenmaguire/oauth2-dropbox/blob/master/CONTRIBUTING.md) for details.
92-
93-
94-
## Credits
95-
96-
- [Steven Maguire](https://github.com/stevenmaguire)
97-
- [All Contributors](https://github.com/stevenmaguire/oauth2-dropbox/contributors)
98-
99-
100-
## License
101-
102-
The MIT License (MIT). Please see [License File](https://github.com/stevenmaguire/oauth2-dropbox/blob/master/LICENSE) for more information.

0 commit comments

Comments
 (0)