PHPackages                             borisguery/oauth2-server-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. borisguery/oauth2-server-bundle

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

borisguery/oauth2-server-bundle
===============================

0.1(10y ago)26MITPHP

Since Apr 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/borisguery/oauth2-server-bundle)[ Packagist](https://packagist.org/packages/borisguery/oauth2-server-bundle)[ RSS](/packages/borisguery-oauth2-server-bundle/feed)WikiDiscussions master Synced yesterday

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

OAuth2 Server Bundle for Symfony
================================

[](#oauth2-server-bundle-for-symfony)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4fa15f6134e69cad519f3b6e0ab1879554a37ff660aed6c366c25f9c7852471c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f72697367756572792f6f61757468322d7365727665722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/borisguery/oauth2-server-bundle)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/987d9ef35d2ea340f314ceb99365d5f64548df867380c87f5656dbd08fbfec8b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626f72697367756572792f6f61757468322d7365727665722d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/borisguery/oauth2-server-bundle)[![Coverage Status](https://camo.githubusercontent.com/17dc4e30757e786fd28d28b9c31467434b0ab833d8a2aad181732a5d542d41e9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f626f72697367756572792f6f61757468322d7365727665722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/borisguery/oauth2-server-bundle/code-structure)[![Quality Score](https://camo.githubusercontent.com/57ec51488a29a6d858476ce62ad737656239c60a2bdb6989dd8d30186d613d45/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626f72697367756572792f6f61757468322d7365727665722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/borisguery/oauth2-server-bundle)[![Total Downloads](https://camo.githubusercontent.com/02daa28d4ddb34028dda7d542b7d590040a3b808c277568966761abedb0f2c36/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626f72697367756572792f6f61757468322d7365727665722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/borisguery/oauth2-server-bundle)

OAuth2 Server Bundle for Symfony

Install
-------

[](#install)

Via Composer

```
$ composer require borisguery/oauth2-server-bundle
```

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

[](#configuration)

```
bgy_o_auth2_server:
    authorization_server:
        storage:
            access_token: oauth2.storage.access_token
            client: oauth2.storage.client
            refresh_token: oauth2.storage.refresh_token
        token_generator: ~
        always_generate_a_refresh_token: true
        always_require_a_client: true
        access_token_ttl: 3600
        refresh_token_ttl: 3600
        grant_types:
            - oauth2.authorization_server.grant_types.password
            - oauth2.authorization_server.grant_types.refresh_token
```

Usage
-----

[](#usage)

```
```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Boris Guéry](https://github.com/borisguery)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3739d ago

### Community

Maintainers

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

---

Top Contributors

[![borisguery](https://avatars.githubusercontent.com/u/345495?v=4)](https://github.com/borisguery "borisguery (13 commits)")

### Embed Badge

![Health badge](/badges/borisguery-oauth2-server-bundle/health.svg)

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

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.8M212](/packages/simplesamlphp-simplesamlphp)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k3](/packages/web-auth-webauthn-framework)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

65474.5k9](/packages/web-auth-webauthn-symfony-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)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128790.7k](/packages/auth0-symfony)[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)
