PHPackages                             eonx-com/easy-api-token - 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. eonx-com/easy-api-token

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

eonx-com/easy-api-token
=======================

Make your API accept multiple authentication strategies in a convenient way (Basic, ApiKey, JWT, ...)

6.20.1(1mo ago)1848.0k↓22.8%[1 issues](https://github.com/eonx-com/easy-api-token/issues)1MITPHPPHP ^8.2CI failing

Since Sep 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/eonx-com/easy-api-token)[ Packagist](https://packagist.org/packages/eonx-com/easy-api-token)[ RSS](/packages/eonx-com-easy-api-token/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (38)Versions (563)Used By (1)

\---eonx\_docs--- title: Introduction weight: 0 ---eonx\_docs---

It is common to restrict access to the endpoints of an API by implementing an authentication mechanism. To do so, you have a lot of available solutions: Basic Auth, API keys, JWTs, etc. Which one to pick? There is no magic solution, and you should make your decision based on the specific problem you're trying to solve.

This package will decode the incoming HTTP Request to extract the "ApiToken" as a PHP object that your application can then use. It comes with built-in decoders for:

- Basic Auth
- API keys
- JWTs (Amazon Cognito, Auth0, Firebase)

So you can start supporting each of those strategies with no effort. It also provides a "chain" decoder allowing you to support multiple ApiToken strategies for the same API endpoint.

Each ApiToken implements a common interface allowing you to use them as parameters regardless of the ApiToken strategy used, also each ApiToken has its own specific PHP class allowing you to implement business logic based on the ApiToken strategy used.

### Require package (Composer)

[](#require-package-composer)

The recommended way to install this package is to use [Composer](https://getcomposer.org/):

```
$ composer require eonx-com/easy-api-token
```

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance69

Regular maintenance activity

Popularity39

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 74.7% 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 ~4 days

Total

528

Last Release

54d ago

Major Versions

4.5.4 → 5.6.102023-11-23

4.5.5 → 5.6.112023-11-26

5.13.1 → 6.0.0-alpha.32024-08-15

4.5.6 → 6.0.12024-09-24

4.5.8 → 6.8.02025-02-20

PHP version history (5 changes)v0.10.7PHP ^7.1

v2.5.0PHP ^7.2

3.4.0PHP ^7.2 || ^8.0

4.0.1PHP ^8.1

6.0.0-alpha.3PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![natepage](https://avatars.githubusercontent.com/u/11576446?v=4)](https://github.com/natepage "natepage (775 commits)")[![roman-eonx](https://avatars.githubusercontent.com/u/48544017?v=4)](https://github.com/roman-eonx "roman-eonx (159 commits)")[![alexndlm](https://avatars.githubusercontent.com/u/6824784?v=4)](https://github.com/alexndlm "alexndlm (50 commits)")[![itorgov](https://avatars.githubusercontent.com/u/1703419?v=4)](https://github.com/itorgov "itorgov (36 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (7 commits)")[![edwardmurrell-loyaltycorp](https://avatars.githubusercontent.com/u/44623821?v=4)](https://github.com/edwardmurrell-loyaltycorp "edwardmurrell-loyaltycorp (2 commits)")[![BOB41K1987](https://avatars.githubusercontent.com/u/20467102?v=4)](https://github.com/BOB41K1987 "BOB41K1987 (2 commits)")[![ERuban](https://avatars.githubusercontent.com/u/13186130?v=4)](https://github.com/ERuban "ERuban (2 commits)")[![rashmitsingh](https://avatars.githubusercontent.com/u/47509325?v=4)](https://github.com/rashmitsingh "rashmitsingh (1 commits)")[![voodooism](https://avatars.githubusercontent.com/u/31572316?v=4)](https://github.com/voodooism "voodooism (1 commits)")[![fsti-francohora](https://avatars.githubusercontent.com/u/38022217?v=4)](https://github.com/fsti-francohora "fsti-francohora (1 commits)")[![ketanp77](https://avatars.githubusercontent.com/u/37789589?v=4)](https://github.com/ketanp77 "ketanp77 (1 commits)")[![dextercampos](https://avatars.githubusercontent.com/u/27075066?v=4)](https://github.com/dextercampos "dextercampos (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eonx-com-easy-api-token/health.svg)

```
[![Health](https://phpackages.com/badges/eonx-com-easy-api-token/health.svg)](https://phpackages.com/packages/eonx-com-easy-api-token)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[symfony/security-bundle

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

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[simplesamlphp/simplesamlphp

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

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[scheb/2fa

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

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

PHPackages © 2026

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