PHPackages                             mach/silex-x509 - 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. mach/silex-x509

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

mach/silex-x509
===============

X.509 Authentication Provider for Silex

2.0.1(10y ago)4311MITPHP

Since Sep 2Pushed 10y agoCompare

[ Source](https://github.com/tiraeth/silex-x509)[ Packagist](https://packagist.org/packages/mach/silex-x509)[ Docs](http://github.com/tiraeth/silex-x509)[ RSS](/packages/mach-silex-x509/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (8)Used By (0)

X.509 Authentication Security Provider
======================================

[](#x509-authentication-security-provider)

[![Build Status](https://camo.githubusercontent.com/4a3e458e8c2d1ab6755647ed325dbc5a25246460e58d83047ec8ef9bdc95a734/68747470733a2f2f7472617669732d63692e6f72672f746972616574682f73696c65782d783530392e706e67)](https://travis-ci.org/tiraeth/silex-x509)

The X509AuthenticationProvider provides a X.509 Authentication Listener and bootstraps it so you can easily implement X.509 Certificate authentication in your Silex application.

Parameters
----------

[](#parameters)

- silex.x509.client\_key: (optional) Header key with Client ID (default: SSL\_CLIENT\_S\_DN)
- silex.x509.credentials\_key: (optional) Header key with Credentials (default: SSL\_CLIENT\_S\_DN\_Email)

Registering
-----------

[](#registering)

```
use Silex\Application;
use Silex\Provider\SecurityServiceProvider;
use Mach\Silex\X509\Provider\X509AuthenticationProvider;

$app = new Application();

$app->register(new SecurityServiceProvider(), [...]);

$app->register(new X509AuthenticationProvider());

```

Example firewall configuration
------------------------------

[](#example-firewall-configuration)

```
$app->register(new SecurityServiceProvider(), array(
    'security.firewalls' => array(
        'x509_cert' => array(
            'pattern' => '^.*$',
            'x509' => true,
            'users' => array(
                'dennis@example.com' => array('ROLE_USER', null),
                'admin@example.com'  => array('ROLE_ADMIN', null),
            ),
        ),
    ),
    'security.access_rules' => array(
        array('^/admin', 'ROLE_ADMIN'),
    ),
    'security.role_hierarchy' => array(
        'ROLE_ADMIN' => array('ROLE_USER'),
    ),
));

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~144 days

Recently: every ~0 days

Total

6

Last Release

3915d ago

Major Versions

1.0.2 → 2.02015-08-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/498acb68270f6fcc295db7bf3478b4d6a1e5935857a62977ff7aaffd315435e2?d=identicon)[tiraeth](/maintainers/tiraeth)

---

Top Contributors

[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (1 commits)")

### Embed Badge

![Health badge](/badges/mach-silex-x509/health.svg)

```
[![Health](https://phpackages.com/badges/mach-silex-x509/health.svg)](https://phpackages.com/packages/mach-silex-x509)
```

###  Alternatives

[cnam/security-jwt-service-provider

Service Provider for usage jwt token for auth

60108.1k2](/packages/cnam-security-jwt-service-provider)[davec49/silex2-simpleuser

A simple database-backed user provider for Silex 2.0, with associated services and controllers forked from jasongrimes/SimpleUser.

131.1k](/packages/davec49-silex2-simpleuser)

PHPackages © 2026

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