PHPackages                             lasso/oauth2-client-bundle - 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. lasso/oauth2-client-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

lasso/oauth2-client-bundle
==========================

Access APIs protected by the oauth2 authentication scheme

v0.0.5(11y ago)03.2k[1 issues](https://github.com/lassodatasystems/LassoOauth2ClientBundle/issues)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Feb 20Pushed 7y ago2 watchersCompare

[ Source](https://github.com/lassodatasystems/LassoOauth2ClientBundle)[ Packagist](https://packagist.org/packages/lasso/oauth2-client-bundle)[ Docs](https://github.com/lassodatasystems)[ RSS](/packages/lasso-oauth2-client-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

\#LassoOauth2ClientBundle

We needed to authenticate against an Oauth2 API using simple 2-legged Bearer-Token authentication. But most of the Oauth2 clients we found were written for 3-legged authentication, or provided minimal functionality, didn't integrate with Symfony well or had other drawbacks.

We decided to write a very simple wrapper around the popular Buzz Browser using the [Buzz Browser Bundle](https://github.com/juliendidier/BuzzBundle). Our client simply retrieves an oauth2 access token and injects it into the header of requests and hands them off to the Buzz Browser.

\##Usage

Pass your authentication credentials into the constructor of the Token class. It also needs a reference to a normal instance of the buzz browser to retrieve a token.

Then pass the token instance and an instance of the buzz browser to the Client class. You can use the client class like the buzz browser, with all public functions being available.

\##Drawbacks

Only the Bearer-Token authentication is supported, as it fulfills our needs - but it's a very simple and less secure method than the HMAC authentication scheme also supported by oauth2. An extension of this bundle to support HMAC would be nice, but is not a high priority for us.

Three-legged authentication is not supported and not the intend of this bundle. If you wish to use three legged authentication, you should probably look at other clients. If you insist on using this bundle, you would have to implement your own authentication mechanism to retrieve an authentication token. You could then write your own Token class which has the public method 'getToken()', and pass that into the client constructor.

[![Build Status](https://camo.githubusercontent.com/f7e83aff3f1b49f6b0317c5254185764e54e9ab2a5c143a04f27376df05912d2/68747470733a2f2f7472617669732d63692e6f72672f6c6173736f6461746173797374656d732f4c6173736f4f6175746832436c69656e7442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/lassodatasystems/LassoOauth2ClientBundle)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~115 days

Total

5

Last Release

4050d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/499521?v=4)[Thomas Rubbert](/maintainers/trb)[@trb](https://github.com/trb)

![](https://avatars.githubusercontent.com/u/238219?v=4)[Hawk Kroeger](/maintainers/zodeus)[@zodeus](https://github.com/zodeus)

---

Top Contributors

[![LassoMike](https://avatars.githubusercontent.com/u/9343069?v=4)](https://github.com/LassoMike "LassoMike (3 commits)")[![zodeus](https://avatars.githubusercontent.com/u/238219?v=4)](https://github.com/zodeus "zodeus (3 commits)")[![saem](https://avatars.githubusercontent.com/u/288031?v=4)](https://github.com/saem "saem (2 commits)")

---

Tags

apiclientSymfony2oauth

### Embed Badge

![Health badge](/badges/lasso-oauth2-client-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/lasso-oauth2-client-bundle/health.svg)](https://phpackages.com/packages/lasso-oauth2-client-bundle)
```

###  Alternatives

[happyr/linkedin-api-client

LinkedIn API client. Handles OAuth, CSRF protection. Easy to implement and extend. This is a standalone library for any composer project.

1991.6M12](/packages/happyr-linkedin-api-client)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

261.8M1](/packages/mollie-oauth2-mollie-php)[jcroll/foursquare-api-client

PHP Foursquare Api Client built on Guzzle

40104.9k1](/packages/jcroll-foursquare-api-client)[andalisolutions/oauth2-anaf

Anaf OAuth 2.0 support for the PHP League's OAuth 2.0 Client

195.9k](/packages/andalisolutions-oauth2-anaf)

PHPackages © 2026

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