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

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

wandi/oauth-bundle
==================

Symfony3 Wrapper for lusitanian/oauth library.

1.2.0(7y ago)0102MITPHPPHP &gt;=5.5.9

Since Mar 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/WandiParis/WandiOAuthBundle)[ Packagist](https://packagist.org/packages/wandi/oauth-bundle)[ RSS](/packages/wandi-oauth-bundle/feed)WikiDiscussions master Synced 3w ago

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

OAuth wrapper for Symfony 3
===========================

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

OAuthBundle is a symfony 3 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.

---

- [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": {
  "wandi/oauth-bundle": "~0.1"
}
```

Use composer to install this package.

```
$ composer update wandi/oauth-bundle

```

### Registering the Bundle

[](#registering-the-bundle)

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

```
    new \Wandi\OAuthBundle\WandiOAuthBundle(),
```

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

[](#configuration)

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

```
wandi_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](/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('wandi_oauth.service.xing');
```

or inject it into another service:

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

---

### More usage examples:

[](#more-usage-examples)

How to use Lusitanian/PHPoAuthLib [here](https://github.com/Lusitanian/PHPoAuthLib/tree/master/examples)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

2685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8718936fc9088cb27065762d123c8961dcdab82e2a63816725a8e397865be115?d=identicon)[wandi](/maintainers/wandi)

---

Tags

oauthsymfonysymfony-bundlesymfony3symfonybundleamazonfacebookinstagramgooglesecurityAuthenticationbitlyoauthoauth2microsoftauthorizationbitbucketgithubtwitteroauth1tumblrpaypalherokumailchimpBufferpocketredditsalesforcelinkedinboxdailymotionflickrvkontakteyahoodropboxfoursquareHarvestetsyspotifyrunkeeperxingfitbitsoundcloudSymfony 3ustreamyammerScoopeItJawboneUPsf3

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[and/oauth

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

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

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

2.4k22.0M76](/packages/hwi-oauth-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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