mlightsaml/symfony-bridge
Symfony bridge for the LightSAML PHP library, adding SAML 2.0 service provider support to Symfony applications. Integrates SAML authentication with Symfony's security system and provides configuration for identity providers, certificates, and routes.
mlightsaml vendor name, this is a Symfony bundle, not a Laravel package. There is no bundle registration, compiler pass, or security.yaml firewall in Laravel. Leveraging it means an adaptor project — re-registering LightSAML services in a Laravel provider, or embedding a second Symfony kernel. That reframes the decision from "install a package" to "fund an integration project."lightsaml/lightsaml core, this is the low-friction Symfony wiring path and informs a migration decision. If we are not, it is an argument for choosing a library that matches our actual stack.Consider it when:
lightsaml/lightsaml core and need Symfony service wiring, a configuration tree, and firewall/authenticator integration — the bridge saves real plumbing time in Symfony.Look elsewhere when:
lightsaml/lightsaml directly behind our own interface rather than installing the bundle.aacotroneo/laravel-saml2, or a managed provider).Diligence gates before any adoption: confirm the license chain (MIT here, but verify upstream LightSAML), check last commit date and open issues, verify which LightSAML core version and PHP versions it targets (8.2+ support is uncertain), confirm what this fork changes versus upstream mlightsaml/symfony-bridge, and prove the code path handles signature validation plus assertion audience/recipient checks correctly. Those are the parts you cannot afford to get wrong.
To executives: Enterprise buyers ask for SAML SSO, and saying no costs deals — so the roadmap question is real. But this specific package is a small piece of glue, not a platform, and it is built for Symfony rather than our Laravel stack. My recommendation is to treat it as an evaluation artifact, not a production dependency. The actual budget decision is between staffing an owned fork (ongoing engineer time plus a recurring security review) and paying a managed identity provider that removes the maintenance and CVE-response burden entirely. Both are cheaper and faster than building SAML in-house, and the managed route removes the ongoing security liability outright. Net: this package is useful for a feasibility spike and for framing the build-vs-buy conversation; it is not the thing we ship.
To engineering: This is a Symfony bridge over LightSAML with effectively zero adoption — zero stars, zero dependents. That is not disqualifying for a spike, but it means no community bug-finding and no upstream security response we can lean on, on a path where signature validation, XML canonicalization, XXE hardening, and replay windows are all in scope. Do not install the bundle in Laravel: its hard dependencies on symfony/security-bundle and symfony/framework-bundle would drag a parallel kernel into the app, and the glue it provides is code we would rewrite anyway. If LightSAML is genuinely required, adopt lightsaml/lightsaml core behind our own SamlAuthenticator contract (initiate / consumeResponse / metadata) so the vendor stays swappable with a one-class change. Run a 1–2 week compatibility spike against PHP 8.2+ and a test IdP, put the decision behind a hard gate, and if we proceed, name a maintainer, pin the version, add it to the security review queue, track LightSAML advisories directly, and use a Redis-backed replay/RelayState store so clustered nodes don't intermittently reject valid assertions or accept replays. If we can't commit to that ownership, take a maintained SP library or go managed.
How can I help you explore Laravel packages today?