PHPackages                             upwork/php-upwork-oauth2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. upwork/php-upwork-oauth2

ActiveLibrary[API Development](/categories/api)

upwork/php-upwork-oauth2
========================

PHP bindings for Upwork API (OAuth2)

v2.5.0(1y ago)153.8k↓50%6Apache-2.0PHPPHP &gt;=5.6.0

Since Feb 3Pushed 6mo ago32 watchersCompare

[ Source](https://github.com/upwork/php-upwork-oauth2)[ Packagist](https://packagist.org/packages/upwork/php-upwork-oauth2)[ Docs](http://www.upwork.com)[ RSS](/packages/upwork-php-upwork-oauth2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (0)

PHP bindings for Upwork API (OAuth2)
====================================

[](#php-bindings-for-upwork-api-oauth2)

[![License](https://camo.githubusercontent.com/9467ff2f956a80927112aee77210f470a474ccf2c6bad53d9dd4718a0630d7de/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7570776f726b2f7068702d7570776f726b2d6f61757468322e737667)](http://www.apache.org/licenses/LICENSE-2.0.html)[![Latest Stable Version](https://camo.githubusercontent.com/3498fac9886788cc574bf3f9fb06f6d3df248007167a50b4ce827d722a5654c2/68747470733a2f2f706f7365722e707567782e6f72672f7570776f726b2f7068702d7570776f726b2d6f61757468322f762f737461626c652e737667)](https://github.com/upwork/php-upwork-oauth2/releases)[![Package version](https://camo.githubusercontent.com/e93619f4a5c01c8e6968f924c5c1413c6fcb58f16f1d5f190c3208a217672615/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7570776f726b2f7068702d7570776f726b2d6f61757468322e737667)](https://packagist.org/packages/upwork/php-upwork-oauth2)[![Build status](https://github.com/upwork/php-upwork-oauth2/workflows/build/badge.svg)](https://github.com/upwork/php-upwork-oauth2/actions)[![Monthly downloads](https://camo.githubusercontent.com/015803e3327f0b22d05f5880f0502f0c629ee58ed9515649fae5b1ae53b4b0ff/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7570776f726b2f7068702d7570776f726b2d6f61757468322e737667)](https://packagist.org/packages/upwork/php-upwork-oauth2)

Introduction
============

[](#introduction)

This project provides a set of resources of Upwork API from based on OAuth 2.0.

Features
========

[](#features)

The library supports all GraphQL calls, which are publicly shared at Upwork

License
=======

[](#license)

Copyright 2018 Upwork Corporation. All Rights Reserved.

php-upwork-oauth2 is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SLA
---

[](#sla)

The usage of this API is ruled by the Terms of Use at:

```
https://developers.upwork.com/api-tos.html

```

Application Integration
=======================

[](#application-integration)

To integrate this library you need to have:

- PHP &gt;= 5.6.0
- Composer installed

Example
-------

[](#example)

In addition to this, a full example is available in the `example` directory. This includes `example.php` that gets an access token and requests the data.

There is also a `composer.json` included to use with Composer.

Composer
--------

[](#composer)

In order to easily integrate with your application we recommend using [Composer](https://getcomposer.org) to install the dependencies.

Below is a simple example of the `composer.json` file you can use:

```
{
    "name": "upwork/my-oauth2-app",
    "require": {
        "upwork/php-upwork-oauth2": "dev-master"
    }
}

```

Installation using Composer
---------------------------

[](#installation-using-composer)

1.

Add `upwork/php-upwork-oauth2` to your `composer.json`, simple example:

```
{
    "name": "my/my-oauth-app",
    "require": {
        "upwork/php-upwork-oauth2": "v2.0.0" // note: the latest release is recommended
    }
}

```

2.

run the following command `/usr/local/bin/composer.phar update`

the output should look similar to

```
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing upwork/php-upwork-oauth2 (v2.0.0)
    Downloading: 100%

Writing lock file
Generating autoload files

```

3.

IMPORTANT: The library supports different OAuth2 clients, by default it uses `thephpleague/oauth2-client`. In case you don't want to use it, or you don't have the possibility to install it, you can create your own wrapper (check `vendor/upwork/php-upwork-oauth2/src/Upwork/API/AuthTypes/` to see how it works).

copy `vendor/upwork/php-upwork-oauth2/example/example.php` to the `myapp.php` if you have

*NOTE: if you use your own wrapper, update 'authType' property in the configuration section of `myapp.php` and specify the name of your handler.*

4.

open `myapp.php` and type the `clientId`, `clientSecret` and `redirectUri` that you previously got from the API Center. *Please, read carefully the comments in the example.*

***That's all. Run your app as `php myapp.php` and have fun.***

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance55

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~226 days

Recently: every ~323 days

Total

12

Last Release

539d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/188588a50fdacb60a09035f700b45965348ea9b77c9ac12a76f0797a3565ee05?d=identicon)[Maksym Novozhylov](/maintainers/Maksym%20Novozhylov)

---

Top Contributors

[![mnovozhylov](https://avatars.githubusercontent.com/u/197380?v=4)](https://github.com/mnovozhylov "mnovozhylov (42 commits)")[![viperet](https://avatars.githubusercontent.com/u/725651?v=4)](https://github.com/viperet "viperet (1 commits)")

---

Tags

phpapioauth2upwork

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/upwork-php-upwork-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/upwork-php-upwork-oauth2/health.svg)](https://phpackages.com/packages/upwork-php-upwork-oauth2)
```

###  Alternatives

[stevenmaguire/yelp-php

A php client for consuming Yelp API

57396.1k](/packages/stevenmaguire-yelp-php)[weble/zohoclient

Zoho API Client for oAuth auth and common tasks - PHP SDK

11145.6k3](/packages/weble-zohoclient)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
