PHPackages                             wassafr/simple-apikey-authenticator-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. wassafr/simple-apikey-authenticator-bundle

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

wassafr/simple-apikey-authenticator-bundle
==========================================

Wassa Simple API Key Authenticator Bundle

1.0.0(8y ago)157proprietaryPHPPHP ~5.4|~7.0

Since Dec 12Pushed 8y agoCompare

[ Source](https://github.com/wassafr/simple-apikey-authenticator-bundle)[ Packagist](https://packagist.org/packages/wassafr/simple-apikey-authenticator-bundle)[ RSS](/packages/wassafr-simple-apikey-authenticator-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

WassaSimpleApiKeyAuthenticatorBundle
====================================

[](#wassasimpleapikeyauthenticatorbundle)

The **WassaSimpleApiKeyAuthenticatorBundle** bundle allows you to add a very simple and light way to authenticate HTTP requests with an API key. It doesn't rely on existing Symfony authentication mechanisms as they require to define some kind of user class to work.

Installation
------------

[](#installation)

Require the `wassafr/simple-apikey-authenticator-bundle` package in your composer.json and update your dependencies.

```
$ composer require wassafr/simple-apikey-authenticator-bundle

```

Register the bundle in `app/AppKernel.php`:

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Wassa\SimpleApiKeyAuthenticatorBundle\WassaSimpleApiKeyAuthenticatorBundle(),
    );
}
```

To enable the configuration, edit the config.yml file as follow:

```
# app/config/config.yml
wassa_simple_api_key_authenticator:
    api_key:
    default_action: check | dont_check
    order: secured,unsecured | unsecured,secured
    secured_patterns:
        - ^\/api\/(?!doc)
    unsecured_patterns:
        - ^\/api\/(?!doc)
        - ^\/admin
        - ^\/bundles
        - ^\/toto
```

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

[](#configuration)

- `api_key`: pretty straightforward
- `default_action`: should the bundle allow or deny access if not API key is configured, if the requested URL doesn't match any configured pattern or when no API key is provided
- `order`: the order the request URL will be evaluated against the configured patterns. Pay attention to this as it could lead to unwanted acess or the opposite
- `secured_patterns`: URL patterns that will required a valid API key
- `unsecured_patterns`: URL patterns that will NOT required a valid API key

Most of the time you won't need to configure both `secured_patterns` and `unsecured_patterns`, but who knows.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3071d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/877eda4ea7a283f6586e4bb72bba182e3f0267dda97e7d42157b178cdc55d832?d=identicon)[wassafr](/maintainers/wassafr)

---

Tags

apisymfonyAuthenticationkeyauthenticator

### Embed Badge

![Health badge](/badges/wassafr-simple-apikey-authenticator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/wassafr-simple-apikey-authenticator-bundle/health.svg)](https://phpackages.com/packages/wassafr-simple-apikey-authenticator-bundle)
```

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M67](/packages/auth0-auth0-php)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[scheb/2fa

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

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

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)

PHPackages © 2026

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