PHPackages                             testmonitor/oauth2-vsts - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. testmonitor/oauth2-vsts

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

testmonitor/oauth2-vsts
=======================

Visual Studio Team Services (VSTS) and Team Foundation Server (TFS) OAuth 2.0 Client Provider for The PHP League OAuth2-Client

3.0.0(3y ago)09.1k1MITPHPPHP &gt;=7.1.0

Since Oct 31Pushed 6mo agoCompare

[ Source](https://github.com/testmonitor/oauth2-vsts)[ Packagist](https://packagist.org/packages/testmonitor/oauth2-vsts)[ RSS](/packages/testmonitor-oauth2-vsts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

Visual Studio Team Services (VSTS) and Team Foundation Server (TFS) Provider for OAuth 2.0 Client
=================================================================================================

[](#visual-studio-team-services-vsts-and-team-foundation-server-tfs-provider-for-oauth-20-client)

[![Latest Version](https://camo.githubusercontent.com/ffcfc1fa4b2295f9b7b46a4c1ceb286a26e8ec60c10bc27a3112b9cc2023f546/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f746573746d6f6e69746f722f6f61757468322d767374732e7376673f7374796c653d666c61742d737175617265)](https://github.com/testmonitor/oauth2-vsts/releases)[![Total Downloads](https://camo.githubusercontent.com/8a0cab6a8f075573e42aeab1efa48c921acab88935397021da0ecfb9b9c840a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746573746d6f6e69746f722f6f61757468322d767374732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/testmonitor/oauth2-vsts)[![Software License](https://camo.githubusercontent.com/ac705656910c027b7447df1621e91073557f562487a6782ba29d83fc91dd2bce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746573746d6f6e69746f722f6f61757468322d767374732e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package provides [Visual Studio Team Services (VSTS) and Team Foundation Server (TFS)](https://docs.microsoft.com/en-us/vsts/integrate/) OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

To install the client you need to require the package using composer:

```
$ composer require testmonitor/oauth2-vsts

```

Use composer's autoload:

```
require __DIR__.'/../vendor/autoload.php';
```

You're all set up now!

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Jeylabs\OAuth2\Client\Provider\VSTS` as the provider.

Examples
--------

[](#examples)

```
$provider = new VSTSProvider([
    'clientId' => $clientId,
    'clientSecret' => $clientSecret,
    'redirectUri' => $redirectUri,
    'urlAuthorize' => 'https://app.vssps.visualstudio.com/oauth2/authorize',
    'urlAccessToken' => 'https://app.vssps.visualstudio.com/oauth2/token',
    'urlResourceOwnerDetails' => 'https://app.vssps.visualstudio.com/oauth2/token/resource',
    'responseType' => 'Assertion',
    'scopes' => 'vso.project vso.work_full',
]);

$token = $provider->getAccessToken('jwt_bearer', [
    'assertion' => $code,
]);
```

Changelog
---------

[](#changelog)

Refer to [CHANGELOG](CHANGELOG.md) for more information.

Contributing
------------

[](#contributing)

Refer to [CONTRIBUTING](CONTRIBUTING.md) for contributing details.

Credits
-------

[](#credits)

This package is based on [JeyLabs OAuth 2 VSTS](https://github.com/jeylabs/oauth2-vsts).

- **Thijs Kok** - *Lead developer* - [ThijsKok](https://github.com/thijskok)
- **Stephan Grootveld** - *Developer* - [Stefanius](https://github.com/stefanius)
- **Frank Keulen** - *Developer* - [FrankIsGek](https://github.com/frankisgek)
- [All Contributors](https://github.com/testmonitor/oauth2-vsts/contributors)

License
-------

[](#license)

The MIT License (MIT). Refer to the [License](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance49

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 64.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 ~304 days

Recently: every ~456 days

Total

7

Last Release

1285d ago

Major Versions

1.0.4 → 2.0.02019-07-14

2.0.0 → 3.0.02022-11-01

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

3.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/47f66133b6b4806a16aaed043daa733f5e97adb7a10c9982d01a1cda9f492040?d=identicon)[stefanius](/maintainers/stefanius)

![](https://www.gravatar.com/avatar/39f48c881813b7d3b044ca5660aa5ab9e60b5dd7c34ed4a47acbb11bd20b7593?d=identicon)[thijskok](/maintainers/thijskok)

---

Top Contributors

[![thijskok](https://avatars.githubusercontent.com/u/1344550?v=4)](https://github.com/thijskok "thijskok (11 commits)")[![sasureshkumar](https://avatars.githubusercontent.com/u/493515?v=4)](https://github.com/sasureshkumar "sasureshkumar (4 commits)")[![suresh-ceymplon](https://avatars.githubusercontent.com/u/81092280?v=4)](https://github.com/suresh-ceymplon "suresh-ceymplon (2 commits)")

---

Tags

clientoauthoauth2microsoftauthorizationtfsvisual studio team servicesteam foundation servervsts

### Embed Badge

![Health badge](/badges/testmonitor-oauth2-vsts/health.svg)

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

###  Alternatives

[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M47](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[stevenmaguire/oauth2-microsoft

Microsoft OAuth 2.0 Client Provider for The PHP League OAuth2-Client

742.3M12](/packages/stevenmaguire-oauth2-microsoft)

PHPackages © 2026

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