PHPackages                             damax/api-auth-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. damax/api-auth-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

damax/api-auth-bundle
=====================

Authentication via api key or JWT.

v2.1.0(7y ago)55043MITPHPPHP ^7.1

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/damax-solutions/api-auth-bundle)[ Packagist](https://packagist.org/packages/damax/api-auth-bundle)[ RSS](/packages/damax-api-auth-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (10)Versions (12)Used By (0)

DamaxApiAuthBundle
==================

[](#damaxapiauthbundle)

[![Build Status](https://camo.githubusercontent.com/5b96cae6343a2643ce221bb6d245120b5cc5fa356d2ba1ea7d67467a51cb7851/68747470733a2f2f7472617669732d63692e6f72672f64616d61782d736f6c7574696f6e732f6170692d617574682d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/damax-solutions/api-auth-bundle) [![Coverage Status](https://camo.githubusercontent.com/446e3b7b2e2d67a411d6871ef1eb729bc2e8df537031761d73d32b995a2f63e5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f64616d61782d736f6c7574696f6e732f6170692d617574682d62756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/damax-solutions/api-auth-bundle?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/81318bdebc6ea24a1f93f8d6a90dbf3ce0745b8e5725dee6808781abd168a421/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616d61782d736f6c7574696f6e732f6170692d617574682d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/damax-solutions/api-auth-bundle/?branch=master)

API key or [JWT](https://jwt.io/) authentication for Symfony application.

Features
--------

[](#features)

#### Api keys

[](#api-keys)

- Store keys in *Redis*, database or right in config.
- Search in multiple storage types until found.
- Use console commands to add, remove or lookup existing keys.
- Define *TTL* for each key i.e. grant temporary access to your API.
- Configure the chain of key extractors from cookie, query string or header.
- Finally, implement your own [ApiKeyUserProvider](Security/ApiKey/ApiKeyUserProvider.php) for custom solution.

### JWT

[](#jwt)

- Symmetric signing support for quick setup i.e. *SSH* keys are not required.
- Add and validate all registered claims.
- Extend payload with any public or custom claim.
- Refresh token functionality.
- Customize success or error responses.

Documentation
-------------

[](#documentation)

Topics:

- [Installation](Resources/doc/installation.md)
- [Api key usage](Resources/doc/api-key.md)
- [Basic JWT usage](Resources/doc/jwt-basic.md)
- [Advanced JWT usage](Resources/doc/jwt-advanced.md)

Contribute
----------

[](#contribute)

Install dependencies and run tests:

```
$ make
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 93.4% 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 ~36 days

Recently: every ~56 days

Total

11

Last Release

2644d ago

Major Versions

0.2.0 → 1.0.02018-03-30

1.3.0 → 2.0.02018-09-04

### Community

Maintainers

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

---

Top Contributors

[![lakiboy](https://avatars.githubusercontent.com/u/1089265?v=4)](https://github.com/lakiboy "lakiboy (114 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![regisnew](https://avatars.githubusercontent.com/u/2974576?v=4)](https://github.com/regisnew "regisnew (1 commits)")

---

Tags

apibundlejwtphpsymfonysymfony-bundle

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/damax-api-auth-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/damax-api-auth-bundle/health.svg)](https://phpackages.com/packages/damax-api-auth-bundle)
```

###  Alternatives

[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[scheb/2fa

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

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

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

6914.0M62](/packages/scheb-2fa-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

63397.4k6](/packages/web-auth-webauthn-symfony-bundle)

PHPackages © 2026

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