modera/backend-security-bundle
Modera Backend Security Bundle adds authentication and access control to backend and admin areas, with configurable roles, permissions, and login protection. It helps secure admin routes and restrict sensitive actions by user role within your existing PHP application stack.
This is not a Laravel package — it is a Symfony 2.x-era bundle from the Modera Foundation backend stack, published as a read-only subtree split. Evaluate it before installing anything.
[READ-ONLY] mirror; issues, PRs, and documentation live in the parent monorepo modera/ModeraFoundation under src/Modera/BackendSecurityBundle. Read the monorepo, not this repo — there are no issues, no releases after 2016-06-10, and no dependents to learn from.composer require modera/backend-security-bundle will resolve against equally old modera/backend-bundle and foundation packages; expect conflicts on any modern Symfony or PHP 8 project. Prototype in a throwaway VM before touching a real app.app/AppKernel.php (or config/bundles.php on Symfony 3.4+) alongside the other Modera backend bundles, then clear cache and confirm the backend routes appear with bin/console debug:router | grep backend.Controller/ and Resources/ directories plus its DependencyInjection/ config. The bundle is mostly backend UI wiring — controllers, ExtJS views, menu registrations — not a security engine./backend) as an admin, open the Security section, create a group, assign permissions to it, and add a user to that group. The intended win is managing users/groups/permissions through the UI instead of hand-editing security.yml and role hierarchies on every change.spatie/laravel-permission.Day-to-day you will interact with this bundle through the backend UI and through the entities it persists, not through its PHP API.
modera/security-bundle/foundation). The bundle's job is the screens. Add the section to the backend menu via the Modera backend navigation config rather than editing templates.is_granted() / @Security annotations in your application and make sure the roles you grant in the UI match the roles your voters and access_control rules check.access_control rule restricting it to super-admins. Never expose the security admin section on the same firewall or prefix as customer-facing routes.Resources/ModeraBackendSecurityBundle/...) for templates and JS, and register any custom menu entries through the backend bundle's navigation extension point rather than patching vendor code.modera/ModeraFoundation; this repo will not accept PRs. Vendor-patching here is a dead end.conflict/replace overrides get messy fast; budget time for this or don't start.access_control/firewall, not the bundle. Route not found → bundle not registered or cache not cleared. Blank screen → missing backend JS assets from the parent bundles.spatie/laravel-permission — both are maintained, documented, and have real communities behind them.How can I help you explore Laravel packages today?