PHPackages                             paysera/lib-bearer-authentication-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. paysera/lib-bearer-authentication-bundle

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

paysera/lib-bearer-authentication-bundle
========================================

Bearer Authentication Bundle

2.0.1(2y ago)09.1k3PHPPHP &gt;=7.4

Since Feb 27Pushed 2y ago7 watchersCompare

[ Source](https://github.com/paysera/lib-bearer-authentication-bundle)[ Packagist](https://packagist.org/packages/paysera/lib-bearer-authentication-bundle)[ RSS](/packages/paysera-lib-bearer-authentication-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (4)Versions (9)Used By (0)

Bearer Authentication Bundle
============================

[](#bearer-authentication-bundle)

Install
-------

[](#install)

Add bundle to `AppKernel.php`:

```
$bundles = [
    ...
    new Paysera\BearerAuthenticationBundle\PayseraBearerAuthenticationBundle(),
];
```

Samples
-------

[](#samples)

Sample `security.yml` for symfony 3/4

```
security:
    providers:
        bearer_user:
            id: paysera_bearer_authentication.security_user.bearer_user_provider

    firewalls:
        bearer_secured:
            pattern: ^/api/
            stateless: true
            bearer: true
            provider: bearer_user
```

Sample security.yml for Symfony 5

```
security:
    enable_authenticator_manager: true
    providers:
      bearer_user:
            id: paysera_bearer_authentication.security_user.bearer_user_provider

    firewalls:
      bearer_secured:
            pattern: ^/api
            stateless: true
            provider: bearer_user
            custom_authenticators:
              - Paysera\BearerAuthenticationBundle\Security\BearerPassportAuthenticator

    access_control:
        # require ROLE_ADMIN for /admin*
        - { path: '^/api', roles: ROLE_ADMIN }
```

All bearer handlers must be tagged with:

```

```

and implement `\Paysera\BearerAuthenticationBundle\Security\User\HandlerInterface`

Example of a handler services.yaml

```
    paysera_auth_token.security.auth_token_handler:
        class: 'App\Services\BearerHandler'
        tags:
            - { name: 'paysera_bearer_authentication.handler' }
```

Support matrix
--------------

[](#support-matrix)

The below table shows the supported PHP versions for this library, please review the composer.json file for each individual package for additional requirements.

Package versionSymfony VersionPHP Version0.x2.x5.50.x3.x5.51.0.03.x5.51.0.13.x5.51.0.14.x5.52.x4.x7.42.x5.x7.4

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 91.8% 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 ~326 days

Recently: every ~543 days

Total

8

Last Release

800d ago

Major Versions

0.0.3 → 1.0.02018-06-21

1.0.2 → 2.0.02024-03-15

PHP version history (2 changes)0.0.1PHP &gt;=5.5

2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d385187c2b529d5c1189dfc3763972f76738d24293593ff3db876fff82321db?d=identicon)[paysera.com](/maintainers/paysera.com)

---

Top Contributors

[![maruf-paysera](https://avatars.githubusercontent.com/u/159132768?v=4)](https://github.com/maruf-paysera "maruf-paysera (56 commits)")[![mSprunskas](https://avatars.githubusercontent.com/u/4427922?v=4)](https://github.com/mSprunskas "mSprunskas (3 commits)")[![tomas7777](https://avatars.githubusercontent.com/u/9091359?v=4)](https://github.com/tomas7777 "tomas7777 (2 commits)")

---

Tags

activebackendoss-librarypackagist

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/paysera-lib-bearer-authentication-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/paysera-lib-bearer-authentication-bundle/health.svg)](https://phpackages.com/packages/paysera-lib-bearer-authentication-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M418](/packages/easycorp-easyadmin-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k190.0M2.6k](/packages/symfony-security-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

589701.7k2](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

7016.5M136](/packages/scheb-2fa-bundle)[contao-community-alliance/dc-general

Universal data container for Contao

1581.4k93](/packages/contao-community-alliance-dc-general)[chameleon-system/chameleon-base

The Chameleon System core.

1029.4k6](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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