PHPackages                             bburnichon/bbn-security-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. [Security](/categories/security)
4. /
5. bburnichon/bbn-security-bundle

AbandonedSymfony-bundle[Security](/categories/security)

bburnichon/bbn-security-bundle
==============================

Simple Api Key based Authentication bundle for Symfony2

v0.1.0(12y ago)1597MITPHPPHP &gt;=5.3.3

Since Oct 15Pushed 12y ago1 watchersCompare

[ Source](https://github.com/bburnichon/bbn-security-bundle)[ Packagist](https://packagist.org/packages/bburnichon/bbn-security-bundle)[ RSS](/packages/bburnichon-bbn-security-bundle/feed)WikiDiscussions master Synced 3d ago

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

bbn-security-bundle [![Build status...](https://camo.githubusercontent.com/670716bed8bd70e22628770aee684bf2adda0cad2d014ab4473e114bad1d7363/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f626275726e6963686f6e2f62626e2d73656375726974792d62756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/bburnichon/bbn-security-bundle)
=============================================================================================================================================================================================================================================================================================================================================================

[](#bbn-security-bundle-)

API Key based Authentication bundle for Symfony2

### Usage

[](#usage)

This bundle will enable the new api\_key authentication provider

use it as below in your security.yml file

```
security:
    firewall:
        your-firewall-name:
            pattern: ^/what-you-wish-to-protect/
            provider: user_provider_name
            api_key:
                parameter: apikey
            stateless: true
```

The new user provider should provide api keys as username

The `loadUserFromUsername()` method will be called with the supplied api key the Authentication class does not care about the credentials fields

### Installation

[](#installation)

```
$ composer require bburnichon/bbn-security-bundle:@dev
```

Then add the following to your AppKernel

```
$bundles = array(
    new BBn\SecurityBundle\BBnSecurityBundle(),
);
```

### Running the Tests

[](#running-the-tests)

```
$ php bin/phpunit
```

### License

[](#license)

bbn-security-bundle is released under the MIT License. See the bundled [LICENSE](https://github.com/bburnichon/bbn-security-bundle/blob/master/Resources/meta/LICENSE) file for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

4594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17cc7af7b9a2ebb7f44e8bea18ca56abd8377cac024b7df026a86070d0faa1d4?d=identicon)[bburnichon](/maintainers/bburnichon)

---

Top Contributors

[![bburnichon](https://avatars.githubusercontent.com/u/2437286?v=4)](https://github.com/bburnichon "bburnichon (9 commits)")

---

Tags

bundlesecurityapikey

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bburnichon-bbn-security-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bburnichon-bbn-security-bundle/health.svg)](https://phpackages.com/packages/bburnichon-bbn-security-bundle)
```

###  Alternatives

[scheb/2fa

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

578630.7k1](/packages/scheb-2fa)[tilleuls/url-signer-bundle

Create and validate signed URLs with a limited lifetime in Symfony

81340.1k](/packages/tilleuls-url-signer-bundle)[anyx/login-gate-bundle

Checking brute force attacks on site

59339.5k](/packages/anyx-login-gate-bundle)[rezzza/security-bundle

Signed requests check

1753.6k](/packages/rezzza-security-bundle)[dneustadt/csrf-cookie-bundle

CSRF protection cookie for use with XHR

1379.2k1](/packages/dneustadt-csrf-cookie-bundle)

PHPackages © 2026

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