swp/multi-tenancy-bundle
SWP MultiTenancyBundle provides flexible multi-tenant support for PHP applications, with tenant-aware services, configuration, and integration helpers for isolating data and switching tenants. Ideal for SaaS projects needing clean tenant separation.
Category mismatch is the first finding. Despite being surfaced in a Laravel/PHP package search, swp/multi-tenancy-bundle is a Symfony bundle, not a Laravel package. It is a read-only subtree split of the Superdesk Web Publisher (SWP) monorepo, and it implements tenancy for a specific Symfony-based content publishing platform — not a general-purpose tenancy abstraction. Any evaluation of "fit" must start from that framing.
Architecture fit
tenant_id discriminator model. There is no schema-per-tenant or database-per-tenant provisioning here — that lives elsewhere in the SWP stack.stancl/tenancy or tenancy/tenancy, which own tenant identification, DB switching, cache/queue/filesystem/Redis namespacing, and Octane safety. This bundle provides a narrower slice of that surface, in a foreign idiom.Integration feasibility
symfony/* components, doctrine/orm, and PHP version constraints (the 2018 release line predates PHP 8). Laravel 10/11 requires PHP 8.1+ and Symfony 6/7 components; resolution would require a fork and platform-req overrides.swp/tenancy, swp/tenant-bundle, swp/publisher). In that context it is the intended component and the constraint graph resolves.Technical risk
Key questions
Stack fit
stancl/tenancy, which covers identification, DB switching, cache/queue/filesystem/Redis prefixing, and per-tenant migrations — the capabilities this bundle only partially addresses.Migration path
Compatibility
composer.json PHP and Symfony constraints against the target framework before any spike; assume conflicts on symfony/http-foundation, symfony/console, symfony/event-dispatcher, and doctrine/orm.Sequencing
stancl/tenancy in a throwaway branch, using this bundle only as a checklist of concerns.swp/multi-tenancy-bundle as a runtime dependency in a Laravel application.Maintenance
Support
Scaling
tenant_id index.Failure modes
Ramp-up
How can I help you explore Laravel packages today?