PHPackages                             apinnecke/oauth-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. apinnecke/oauth-bundle

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

apinnecke/oauth-bundle
======================

Symfony2 Wrapper for lusitanian/oauth library.

0.2.0(9y ago)46442[1 issues](https://github.com/apinnecke/OAuthBundle/issues)[1 PRs](https://github.com/apinnecke/OAuthBundle/pulls)MITPHPPHP &gt;=5.5.9

Since Dec 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/apinnecke/OAuthBundle)[ Packagist](https://packagist.org/packages/apinnecke/oauth-bundle)[ RSS](/packages/apinnecke-oauth-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

OAuth wrapper for Symfony 2
===========================

[](#oauth-wrapper-for-symfony-2)

oauth-bundle is a symfony 2 wrapper bundle for [Lusitanian/PHPoAuthLib](https://github.com/Lusitanian/PHPoAuthLib)which provides oAuth support in PHP 5.3+ and is very easy to integrate with any project which requires an oAuth client.

[![Build Status](https://camo.githubusercontent.com/3face43d418224719c153d69e36013b44c5e5bef5c9f30652d0509cb403bed44/68747470733a2f2f6170692e7472617669732d63692e6f72672f6170696e6e65636b652f4f4175746842756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/APinneckeOAuthBundle)[![Latest Stable Version](https://camo.githubusercontent.com/2d8b2753dbf6bbc0c13b62962f37dfd5729211716220921d0be61a32b51ff19d/68747470733a2f2f706f7365722e707567782e6f72672f6170696e6e65636b652f6f617574682d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/apinnecke/oauth-bundle)[![Total Downloads](https://camo.githubusercontent.com/b4db62e2b88aab2ff23b7475a510bd966bc920f869659a34922e829f1bd60743/68747470733a2f2f706f7365722e707567782e6f72672f6170696e6e65636b652f6f617574682d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/apinnecke/oauth-bundle)

---

- [Supported services](#supported-services)
- [Installation](#installation)
- [Registering the Bundle](#registering-the-bundle)
- [Configuration](#configuration)
- [Services](#services)
- [More usage examples](#more-usage-examples)

Supported services
------------------

[](#supported-services)

The library supports both oAuth 1.x and oAuth 2.0 compliant services. A list of currently implemented services can be found below. More services will be implemented soon.

Included service implementations:

- OAuth1
    - BitBucket
    - Etsy
    - FitBit
    - Flickr
    - Scoop.it!
    - Tumblr
    - Twitter
    - Xing
    - Yahoo
- OAuth2
    - Amazon
    - BitLy
    - Box
    - Dailymotion
    - Dropbox
    - Facebook
    - Foursquare
    - GitHub
    - Google
    - Harvest
    - Heroku
    - Instagram
    - LinkedIn
    - Mailchimp
    - Microsoft
    - PayPal
    - Pocket
    - Reddit
    - RunKeeper
    - SoundCloud
    - Vkontakte
    - Yammer
- more to come!

To learn more about Lusitanian/PHPoAuthLib go [here](https://github.com/Lusitanian/PHPoAuthLib)

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

[](#installation)

Add oauth-bundle to your composer.json file:

```
"require": {
  "apinnecke/oauth-bundle": "~0.1"
}
```

Use composer to install this package.

```
$ composer update apinnecke/oauth-bundle

```

### Registering the Bundle

[](#registering-the-bundle)

Register the bundle in your `app/AppKernel.php`:

```
    new \APinnecke\Bundle\OAuthBundle\APinneckeOAuthBundle(),
```

Configuration
-------------

[](#configuration)

Now add required config to `app/config/config.yml`:

```
apinnecke_oauth:
    resource_owners:
        Xing:
            client_id: thisismyclientid
            client_secret: thisismyclientsecret
```

**important**:The resource owner name has to be in correct casing. Have a look on the available constants in [./ServiceFactory/ResourceOwners.php](/blob/master/ServiceFactory/ResourceOwners.php)

Xing is used as an example here. Replace it with whatever your want. Now add all the resource owners you need, the services are created automatically.

Services
========

[](#services)

Services will be created automatically by this bundle. In my case, i want the xing service:

```
    $service = $this->container->get('apinnecke_oauth.service.xing');
```

or inject it into another service:

```
    fancy_company.random_namespace.wayne_bundle:
        class: FancyCompany\Bundle\WayneBundle\MyCool\ClassFor\WorldDominance
        arguments:
            - "@apinnecke_oauth.service.xing"
```

---

### More usage examples:

[](#more-usage-examples)

For examples go [here](https://github.com/Lusitanian/PHPoAuthLib/tree/master/examples)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Every ~184 days

Total

4

Last Release

3609d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

0.2.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/d97abc211bc7bd5ea8eb576c81568320471d7b369d2a2572b7662c69329fe565?d=identicon)[apinnecke](/maintainers/apinnecke)

---

Top Contributors

[![aklinkert](https://avatars.githubusercontent.com/u/1313774?v=4)](https://github.com/aklinkert "aklinkert (14 commits)")

---

Tags

symfonybundleamazonfacebookinstagramgooglesecurityAuthenticationbitlyoauthoauth2microsoftauthorizationbitbucketgithubtwitteroauth1tumblrpaypalsymfony 2herokumailchimpBufferpocketredditsalesforcelinkedinboxdailymotionflickrvkontakteyahoodropboxfoursquareHarvestetsyspotifyrunkeeperxingfitbitsoundcloudustreamyammerScoopeItJawboneUP

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apinnecke-oauth-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/apinnecke-oauth-bundle/health.svg)](https://phpackages.com/packages/apinnecke-oauth-bundle)
```

###  Alternatives

[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4645.2k2](/packages/and-oauth)[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)

PHPackages © 2026

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