symfony/security-core
Symfony Security Core provides the core building blocks for authentication and authorization: tokens, voters, role hierarchies, access decision management, and user providers. Use it to implement flexible permission checks and separate security logic from user storage.
Adopt if:
Look elsewhere if:
session_start() + basic checks).For Executives: "Symfony’s Security Core is the ‘Linux kernel’ of PHP authentication—open-source, enterprise-grade, and used by 500,000+ projects. It lets us ship secure, scalable access controls without hiring specialized security engineers. For example, we can implement admin-user hierarchies in days (not months) and future-proof for compliance. The MIT license means no vendor lock-in, and it integrates seamlessly with our existing Laravel stack. Upfront cost: zero (open-source); long-term savings: massive in dev time and security risks."
For Engineering: *"This replaces ad-hoc auth logic with a modular, tested system for:
composer require symfony/security-core, and we’re 80% there. The SymfonyCasts sponsorship means great docs/tutorials too."*For Security Teams: *"This component enforces principle of least privilege out of the box:
ROLE_ADMIN inherits ROLE_USER).How can I help you explore Laravel packages today?