PHPackages                             linkorb/silex-provider-user-basic - 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. linkorb/silex-provider-user-basic

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

linkorb/silex-provider-user-basic
=================================

Custom Symfony Security User and in-memory User Provider for use in Silex apps.

v1.0(9y ago)0113[1 PRs](https://github.com/linkorb/silex-provider-user-basic/pulls)MITPHP

Since May 15Pushed 2y ago3 watchersCompare

[ Source](https://github.com/linkorb/silex-provider-user-basic)[ Packagist](https://packagist.org/packages/linkorb/silex-provider-user-basic)[ RSS](/packages/linkorb-silex-provider-user-basic/feed)WikiDiscussions master Synced 2d ago

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

linkorb/silex-provider-user-basic
=================================

[](#linkorbsilex-provider-user-basic)

Custom Symfony Security User and in-memory User Provider for use in Silex apps.

First, create an array of users:-

```
// for example, in src/app.php
$users = [
    'jo' => [
        'password' => '$2y$12$G7...',
        'roles' => ['admin'],
        'display_name' => 'Joseph',
        'enabled' => false,
    ],
    'jen' => [
        'password' => '$2y$12$oD...',
        'roles' => ['admin'],
        'display_name' => 'Jenifer',
    ],
];

```

The `password` value is the hashed password; these can be generated with the accomapnying password hashing command:-

```
$ vendor/bin/hashpasswd -h
Usage:
  hashpasswd [options]
Options:
  -c, --cost=COST       Algorithmic cost of the hash function. [default: 12]
  -h, --help            Display this help message
Help:
  The command interactively asks for the password before printing its hash.

```

Next, register Silex's core SecurityServiceProvider and provide a firewall paramater:-

```
$app->register(
    new SecurityServiceProvider,
    [
        'security.firewalls' => [
            'api' => [
                'pattern' => '^/api',
                'http' => true,
                'users' => function () use ($users) {
                    return new \LinkORB\BasicUser\Provider\UserProvider($users);
                },
            ],
        ],
    ]
);

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Unknown

Total

1

Last Release

3334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/linkorb-silex-provider-user-basic/health.svg)

```
[![Health](https://phpackages.com/badges/linkorb-silex-provider-user-basic/health.svg)](https://phpackages.com/packages/linkorb-silex-provider-user-basic)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)

PHPackages © 2026

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