PHPackages                             brlab-inc/oauth2-twitter - 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. brlab-inc/oauth2-twitter

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

brlab-inc/oauth2-twitter
========================

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

1.0(6y ago)07MITPHP

Since Aug 19Pushed 3y agoCompare

[ Source](https://github.com/brlab-inc/oauth2-twitter)[ Packagist](https://packagist.org/packages/brlab-inc/oauth2-twitter)[ RSS](/packages/brlab-inc-oauth2-twitter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Twitter Provider for OAuth 2.0 Client
=====================================

[](#twitter-provider-for-oauth-20-client)

[![Latest Version](https://camo.githubusercontent.com/c08b94630cfe7f75ba8147c0befec1e8eabfbaea32571bad5f530ae2c33b1c72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f6f61757468322d747769747465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/oauth2-twitter/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f639c8726dca83a8a7dd1863648dc9aa9aaca76a013bc5bae3e25857ef7e9776/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f6f61757468322d747769747465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/oauth2-twitter)[![Coverage Status](https://camo.githubusercontent.com/c6d03f7f557bfee64a90e9d21a0c61ec4dcc3e62f4b2e29eeb26ea892d653615/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468657068706c65616775652f6f61757468322d747769747465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/oauth2-twitter/code-structure)[![Quality Score](https://camo.githubusercontent.com/7d93d41b5c6196079b1db80a13a5878445811e79e269858fdb3b2a5c3e05467b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468657068706c65616775652f6f61757468322d747769747465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/oauth2-twitter)[![Total Downloads](https://camo.githubusercontent.com/4f38a952e1c3806bf4c3ad15a3b358a325bf2460cffc40c164396657a75ce381/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f6f61757468322d747769747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/oauth2-twitter)

This package provides Twitter OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

To install, use composer:

```
composer require brlab-inc/oauth2-twitter

```

Usage
-----

[](#usage)

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

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/thephpleague/oauth2-twitter/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Greg Bowler](https://github.com/g105b)
- [All Contributors](https://github.com/thephpleague/oauth2-twitter/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/thephpleague/oauth2-twitter/blob/master/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2458d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36683806?v=4)[YAMATO Takeshi](/maintainers/yamato-brl)[@yamato-brl](https://github.com/yamato-brl)

---

Top Contributors

[![svartowl](https://avatars.githubusercontent.com/u/1082409?v=4)](https://github.com/svartowl "svartowl (2 commits)")

---

Tags

clientoauthoauth2authorizationauthorisationtwitter

### Embed Badge

![Health badge](/badges/brlab-inc-oauth2-twitter/health.svg)

```
[![Health](https://phpackages.com/badges/brlab-inc-oauth2-twitter/health.svg)](https://phpackages.com/packages/brlab-inc-oauth2-twitter)
```

###  Alternatives

[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)[smolblog/oauth2-twitter

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

17190.0k5](/packages/smolblog-oauth2-twitter)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[omines/oauth2-gitlab

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

36721.5k13](/packages/omines-oauth2-gitlab)

PHPackages © 2026

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