Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Acl Bundle Laravel Package

oneup/acl-bundle

Symfony bundle that provides a Doctrine-backed ACL layer for securing application objects. It integrates with Symfony's security component and offers helpers for checking and managing user permissions in controllers and templates, simplifying fine-grained object-level access control.

View on GitHub
Deep Wiki
Context7

The missing link between Symfonys Acl implementation and your application.

Frequently asked questions about Acl Bundle
Can I use oneup/acl-bundle in a Laravel application?
No, not practically. It is a Symfony bundle that depends on Symfony's kernel, dependency injection container, and Security ACL component, so it will not auto-register or function inside Laravel. Composer may resolve it, but there is no bundle boot process to wire its services. For Laravel you should use native Gates and Policies, optionally with a role/permission package for coarse-grained access.
What does oneup/acl-bundle actually do?
It provides a Doctrine-backed ACL layer that connects Symfony's Security ACL implementation to your application's domain objects. The bundle offers helpers for checking and managing user permissions in controllers and templates. It is aimed at fine-grained, per-object access control rather than simple role checks.
How does the ACL model work in oneup/acl-bundle?
It follows Symfony's ACL concepts: object identities represent your domain objects, security identities represent users or roles, entries store granted masks, and inheritance lets permissions cascade between objects. Masks are bitwise permission values, so you define abilities as constants and combine them. Permission lookups are typically served through an ACL cache for performance.
Does oneup/acl-bundle support modern Laravel, PHP 8.x, or Symfony 6/7?
Expect it to be constrained to older Symfony and PHP versions, since Symfony's ACL component is legacy and no longer part of the modern framework stack. Always check the Composer constraints before attempting anything. In practice you should pin exact versions and commit a lockfile, because dependency conflicts with a current Laravel stack are likely.
How do I implement object-level permissions in Laravel instead of using this bundle?
Start with Laravel Gates and Policies for model-level authorization, and add spatie/laravel-permission for coarse-grained roles and permissions. Only build a custom per-object ACL table (object type, object id, subject, ability) if you genuinely need per-record grants, and cache the decisions. This keeps authorization inside the framework's native pipeline and avoids mixing two authorization systems.
What are the alternatives to oneup/acl-bundle for a Laravel project?
For most applications Laravel's built-in Gates and Policies are enough, with spatie/laravel-permission or a team-scoped permissions package for roles. If you need true per-object grants, a small custom ACL table with cached lookups is usually cheaper than adopting a legacy Symfony bundle. The bundle is better treated as a design reference for masks, entries, and inheritance than as a runtime dependency.
Is oneup/acl-bundle safe and maintained for production use?
It has weak adoption signals (around 49 stars and no dependents), and Symfony ACL itself is legacy, so upstream security patches should not be assumed. This is security-critical authorization code, so any use demands a mandatory security review and a named owner for patching. For a Laravel application the recommendation is not to adopt it as a runtime dependency at all.
How do I migrate existing Symfony ACL data to Laravel permissions?
Extract the ACL tables (object identities, security identities, and entries) and map Symfony masks to Laravel abilities or your own permission records. Run dual-read or shadow-mode comparisons so Laravel decisions are checked against the legacy ACL before cutover. Roll out behind a feature flag with a documented rollback and a decommission path for the old schema.
Can I run oneup/acl-bundle as a sidecar service for a Laravel app?
Yes, that is the only defensible integration shape. Isolate the bundle inside a separate legacy Symfony service, expose authorization checks over an API authenticated with service tokens, and cache the decisions in Laravel. Do not share sessions between the two applications or attempt to register the bundle directly in Laravel.
How should I install and evaluate oneup/acl-bundle before committing?
First confirm the target application is Symfony (and which versions), because installation only makes sense inside a Symfony kernel where you register the bundle and configure the Doctrine ACL schema. Run a time-boxed spike in an isolated branch or sidecar, pin every version, and commit the lockfile. Use the spike to measure authorization latency, schema complexity, and upgrade risk before any adoption decision.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections