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

Bouncer Laravel Package

mediapress/bouncer

Role and permission-based authorization for Laravel. Bouncer lets you define abilities, assign roles and permissions, and check access anywhere in your app with clean, testable code—no bloated configuration or complex setup required.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on authorization. Bouncer is a database-backed roles-and-abilities layer for Laravel. Adopting it converts "we need an admin-editable permission system" from a 3–6 sprint internal build into a configuration task — a decision that typically lands on the roadmap right after the first enterprise/team-tier customer asks "can we control who sees what?"
  • RBAC now, ABAC later. The package supports classic role→ability grants scoped to models, which maps cleanly to a v1 permissions model (Admin / Editor / Viewer). It defers the harder question of attribute-based rules (ownership, region, plan tier), which is a roadmap lever rather than a blocker.
  • Multi-tenant and per-account scoping. Because roles and abilities are Eloquent models, they can be scoped per tenant, per organization, or per "workspace." This directly supports decisions about whether to sell seat-based multi-tenant plans or single-tenant deployments.
  • Entitlement gating for packaging and pricing. Abilities can represent plan features ("export.csv", "sso.enabled"), making it a viable substrate for feature flags tied to billing tiers — a decision point for monetization experiments without a separate flagging vendor.
  • Admin surface scope. If roles/abilities live in the database, the product decision shifts from "engineering ships a permission change" to "customer success configures it in-app." That changes support cost modeling and the admin-console roadmap.
  • Use cases this fits: B2B SaaS with customer-managed users, internal tools with delegated administration, marketplaces with seller/buyer role separation, and any Laravel product where permissions change per customer without a deploy.

When to Consider This Package

Adopt only after clearing these criteria:

  • You are committed to Laravel/Eloquent and want permissions to live in the ORM alongside your domain models rather than in a separate policy DSL or external service (Auth0, Cerbos, OPA).
  • Permissions must be editable at runtime by non-engineers — the decisive requirement. If permissions only change with code, use Laravel's native Gates and Policies and skip the dependency entirely.
  • You need scoped grants (a user is an Admin of Organization A but a Viewer of Organization B) and don't want to hand-roll polymorphic pivot tables.
  • Your permission surface is modest — tens of roles, hundreds of abilities. Beyond that, plan for caching and query review.

Look elsewhere — or do not adopt this specific distribution — when:

  • Provenance and maintenance cannot be verified. This listing shows zero stars, zero dependents, and no visible community around a Bitbucket-hosted mediapress fork of an existing package. Before any code is written, confirm: divergence from the upstream silber/bouncer, license terms (upstream is MIT — a fork must preserve it), commit recency, CI status, and whether security fixes will be pulled from upstream. If the fork exists only to patch a private need, treat it as an internal fork you own, not a vendor dependency.
  • You want a maintained OSS dependency with a hiring pool. spatie/laravel-permission is the default answer for RBAC in Laravel; the upstream silber/bouncer is the answer when you specifically need model-scoped abilities. Both have the community signal this listing lacks.
  • Your authorization logic is genuinely attribute-based (ownership, time windows, approval chains). Gates and Policies express this far more readably than ability strings.
  • You need central authorization across services — PHP-only, in-process, Eloquent-backed; it will not serve non-Laravel services.
  • Compliance requires an immutable audit trail. DB-editable grants help, but you will still own the change-log and approval-workflow build.

How to Pitch It (Stakeholders)

For executives: This is a candidate for closing a recurring enterprise sales gap — customer-managed permissions — without a bespoke build. It is a library, not a platform: no vendor contract, no per-seat cost, MIT-licensed lineage. The catch is sourcing: the package as listed has no community footprint, so the recommendation is to evaluate the capability (Eloquent-backed RBAC) and adopt a vetted distribution — the upstream silber/bouncer or spatie/laravel-permission — unless engineering confirms this fork is actively maintained and security-patched. Expected effort is days of integration rather than a quarter of building.

For engineering: Eloquent-native roles and abilities with model scoping and Blade/Gate integration, so it slots in without rewriting existing @can calls. Risks to sign off on: fork provenance and patch cadence, cache invalidation behavior under load, N+1 or permission-lookup cost at scale, and whether we accept a PHP-only, in-process authorization boundary. Ask for a two-day spike: integrate, load-test the authorization check path, and diff against the upstream. If the fork doesn't survive the diff, adopt the upstream and keep the same architecture decision — the product call is "database-driven RBAC in Laravel," and it holds regardless of which repo ships it.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels