1
1
PHP bindings for Upwork API (OAuth2)
2
2
============
3
3
4
- [ ![ License] ( http://img.shields.io/packagist/l/upwork/php-upwork.svg )] ( http://www.apache.org/licenses/LICENSE-2.0.html )
5
- [ ![ Latest Stable Version] ( https://poser.pugx.org/upwork/php-upwork/v/stable.svg )] ( https://github.com/upwork/php-upwork/releases )
6
- [ ![ Package version] ( http://img.shields.io/packagist/v/upwork/php-upwork.svg )] ( https://packagist.org/packages/upwork/php-upwork )
7
- [ ![ Build status] ( https://travis-ci.org/upwork/php-upwork.svg )] ( http://travis-ci.org/upwork/php-upwork )
8
- [ ![ Monthly downloads] ( http://img.shields.io/packagist/dm/upwork/php-upwork.svg )] ( https://packagist.org/packages/upwork/php-upwork )
4
+ [ ![ License] ( http://img.shields.io/packagist/l/upwork/php-upwork-oauth2 .svg )] ( http://www.apache.org/licenses/LICENSE-2.0.html )
5
+ [ ![ Latest Stable Version] ( https://poser.pugx.org/upwork/php-upwork-oauth2 /v/stable.svg )] ( https://github.com/upwork/php-upwork-oauth2 /releases )
6
+ [ ![ Package version] ( http://img.shields.io/packagist/v/upwork/php-upwork-oauth2 .svg )] ( https://packagist.org/packages/upwork/php-upwork-oauth2 )
7
+ [ ![ Build status] ( https://travis-ci.org/upwork/php-upwork-oauth2 .svg )] ( http://travis-ci.org/upwork/php-upwork-oauth2 )
8
+ [ ![ Monthly downloads] ( http://img.shields.io/packagist/dm/upwork/php-upwork-oauth2 .svg )] ( https://packagist.org/packages/upwork/php-upwork-oauth2 )
9
9
[ ![ SensioLabsInsight] ( https://insight.sensiolabs.com/projects/5e7c00ac-ac19-4b77-92ab-e8888a60028e/mini.png )] ( https://insight.sensiolabs.com/projects/5e7c00ac-ac19-4b77-92ab-e8888a60028e )
10
10
11
11
# Introduction
@@ -33,7 +33,7 @@ These are the supported API resources:
33
33
34
34
Copyright 2018 Upwork Corporation. All Rights Reserved.
35
35
36
- php-upwork is licensed under the Apache License, Version 2.0 (the "License");
36
+ php-upwork-oauth2 is licensed under the Apache License, Version 2.0 (the "License");
37
37
you may not use this file except in compliance with the License.
38
38
You may obtain a copy of the License at
39
39
@@ -71,18 +71,18 @@ Below is a simple example of the `composer.json` file you can use:
71
71
{
72
72
"name": "upwork/my-oauth2-app",
73
73
"require": {
74
- "upwork/php-upwork": "dev-master"
74
+ "upwork/php-upwork-oauth2 ": "dev-master"
75
75
}
76
76
}
77
77
78
78
## Installation using Composer
79
79
1 .
80
- Add ` upwork/php-upwork ` to your ` composer.json ` , simple example:
80
+ Add ` upwork/php-upwork-oauth2 ` to your ` composer.json ` , simple example:
81
81
```
82
82
{
83
83
"name": "my/my-oauth-app",
84
84
"require": {
85
- "upwork/php-upwork": "v2.0.0" // note: the latest release is recommended
85
+ "upwork/php-upwork-oauth2 ": "v2.0.0" // note: the latest release is recommended
86
86
}
87
87
}
88
88
```
@@ -94,7 +94,7 @@ the output should look similar to
94
94
```
95
95
Loading composer repositories with package information
96
96
Updating dependencies (including require-dev)
97
- - Installing upwork/php-upwork (v2.0.0)
97
+ - Installing upwork/php-upwork-oauth2 (v2.0.0)
98
98
Downloading: 100%
99
99
100
100
Writing lock file
@@ -105,9 +105,9 @@ Generating autoload files
105
105
IMPORTANT:
106
106
The library supports different OAuth2 clients, by default it uses ` thephpleague/oauth2-client ` .
107
107
In case you don't want to use it, or you don't have the possibility to install it, you can create
108
- your own wrapper (check ` vendor/upwork/php-upwork/src/Upwork/API/AuthTypes/ ` to see how it works).
108
+ your own wrapper (check ` vendor/upwork/php-upwork-oauth2 /src/Upwork/API/AuthTypes/ ` to see how it works).
109
109
110
- copy ` vendor/upwork/php-upwork/example/example.php ` to the ` myapp.php ` if you have
110
+ copy ` vendor/upwork/php-upwork-oauth2 /example/example.php ` to the ` myapp.php ` if you have
111
111
112
112
* NOTE: if you use your own wrapper, update 'authType' property in the configuration section of
113
113
` myapp.php ` and specify the name of your handler.*
0 commit comments