PHPackages                             limit0/modlr-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. limit0/modlr-auth-bundle

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

limit0/modlr-auth-bundle
========================

Implements core authentication services for projects using modlr

v0.2(9y ago)0339MITPHPPHP &gt;=5.4

Since Feb 26Pushed 9y ago3 watchersCompare

[ Source](https://github.com/limit-zero/ModlrAuthBundle)[ Packagist](https://packagist.org/packages/limit0/modlr-auth-bundle)[ RSS](/packages/limit0-modlr-auth-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

ModlrAuthBundle
===============

[](#modlrauthbundle)

Implements core authentication services for projects using [as3io/modlr](https://github.com/as3io/modlr)

Requirements
------------

[](#requirements)

- You must use or replicate the supplied `core-user` [model](/Resources/config/core-user.yml.dist).
    - You can (optionally) use the supplied `core-account` [model](/Resources/config/core-account.yml.dist).

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

[](#installation)

Install the package via composer:

```
composer require limit0/modlr-auth-bundle

```

Include the bundle in your `AppKernel.php`:

```
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Limit0\ModlrAuthBundle\Limit0ModlrAuthBundle(),
            // ...
```

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

[](#configuration)

### Routing

[](#routing)

You will need to import this bundle's routing. To prevent any potential collision issues, be sure to load it before your API is loaded in your application:

```
limit0_modlr_auth:
    resource: "@Limit0ModlrAuthBundle/Resources/config/routing.yml"

as3_modlr_bundle:
    resource: "@As3ModlrBundle/Resources/config/routing.yml"
    defaults:
        _format: json
# ...
```

### Security

[](#security)

Update `security.yml` configuration (a [template](/Resources/config/security.yml.dist) is available):

Add the `core_user` provider:

```
    providers:
        core_user:
            id: modlr_auth_bundle.security.user_provider.core_user
    # ...
```

Add the user encoder:

```
    encoders:
        Limit0\Bundle\ModlrAuthBundle\Security\User\CoreUser:
            algorithm: bcrypt
            cost: 13
    # ...
```

There are two authenticators supplied, a stateless API authenticator that uses JWT:

```
    firewalls:
        api:
            context: core
            pattern: ^/api\/rest
            provider: core_user
            guard:
                authenticators:
                    - modlr_auth_bundle.security.authenticator.api
```

And one that uses stateful Symfony framework tokens:

```
    firewalls:
        manage:
            context: core
            anonymous: ~
            provider: core_user
            guard:
                authenticators:
                    - modlr_auth_bundle.security.authenticator.core_user
            remember_me:
                secret: "%secret%"
                lifetime: 63072000
                name: __modlr-auth
                always_remember_me: true
            logout:
                path: /api/auth/user/destroy
                invalidate_session: false
                success_handler: modlr_auth_bundle.security.logout_success_handler
```

Once you've configured your firewalls, configure your access controlled paths.

To lock out the modlr API (replace `api/rest` with your configured modlr rest api prefix):

```
    access_control:
        - { path: ^/api/auth, roles: [ IS_AUTHENTICATED_ANONYMOUSLY ] }
        - { path: ^/api/rest, roles: [ ROLE_ADMIN\USER ] }
```

Or locking down the entire application can be done as well:

```
    access_control:

    access_control:
        - { path: ^/api/auth, roles: [ IS_AUTHENTICATED_ANONYMOUSLY ] }
        - { path: ^/, roles: [ ROLE_ADMIN\USER ] }
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~78 days

Total

2

Last Release

3288d ago

### Community

Maintainers

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

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

---

Top Contributors

[![solocommand](https://avatars.githubusercontent.com/u/1778222?v=4)](https://github.com/solocommand "solocommand (13 commits)")[![zarathustra323](https://avatars.githubusercontent.com/u/3289485?v=4)](https://github.com/zarathustra323 "zarathustra323 (1 commits)")

---

Tags

authenticationmodlrsymfony-bundle

### Embed Badge

![Health badge](/badges/limit0-modlr-auth-bundle/health.svg)

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

###  Alternatives

[simplesamlphp/simplesamlphp

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

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[scheb/2fa

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

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

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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