sylius-labs/polyfill-symfony-security
PolyfillSymfonySecurity provides compatibility shims for Symfony Security, helping apps and libraries bridge differences across Symfony versions. Useful when supporting multiple Symfony releases without changing your codebase or adding hard dependencies.
For Executives: "This package lets us adopt enterprise-grade security features (like role hierarchies or OAuth2) in our Laravel app without a full rewrite—reducing risk and cost. It’s a bridge to Symfony’s ecosystem, which could unlock future integrations with minimal disruption. Think of it as ‘Lego blocks’ for security: we only pay for what we use today, but keep options open for tomorrow."
For Engineering: *"The polyfill lets us leverage Symfony’s SecurityBundle (e.g., voters, firewalls, providers) in Laravel with minimal friction. Key benefits:
For Developers:
*"Need to add a Voter for resource-level permissions or support OAuth2? This lets you use Symfony’s Security components without the Symfony framework. Example:
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
use SyliusLabs\PolyfillSymfonySecurity\Authorization\Voter\VoterInterface as PolyfillVoter;
How can I help you explore Laravel packages today?