mlightsaml/lightsaml
LightSAML is a PHP SAML 2.0 library with message models, bindings, metadata, and XML signing/encryption support. It helps build service provider and identity provider integrations, including in Laravel apps.
Consider it when:
mlightsaml namespace — this fork exists largely as a patched namespace vendored into an existing dependency tree. If a downstream package (historically Laravel SAML wrappers) pins mlightsaml/lightsaml, adopting it is a migration-avoidance decision, not a fresh one.Look elsewhere when:
lightsaml/lightsaml is the canonical project; evaluate that instead, and only take this fork if you consciously need its patches. For any security-critical SAML work, an unreviewed fork is a red flag — you need proof of eyes on the code, not just compilable code.onelogin/php-saml (and its successor lineage) is a more commonly deployed SP-focused option with better-documented attack mitigations; simplesamlphp/simplesamlphp is the standard if you also need to act as an IdP or run a federation proxy.For executives (one paragraph):
This is a lightweight, MIT-licensed SAML 2.0 library for PHP that lets us ship enterprise single sign-on — the feature enterprise buyers ask for before signing — without building cryptographic XML handling ourselves or paying a per-seat SSO vendor. It removes a build-vs-buy blocker and keeps the integration under our control at no license cost. The trade-off is ownership: SAML is security-critical, and this particular fork shows no community adoption (zero stars, zero dependents), so if we adopt it we must pin versions, treat it as internal code, and assign an owner for security patches. Recommendation: use it as a scoping tool for the SSO initiative, but make the go/no-go decision after comparing against the upstream lightsaml project, onelogin/php-saml, and a buy option — because "free library" still carries maintenance cost and CVE risk.
For engineering (one paragraph):
LightSAML is a composer-installable, MIT-licensed toolkit for SAML 2.0: AuthnRequest/Response building and parsing, XML signature and certificate handling, metadata generation, and SP- and IdP-side abstractions. It's a lower-level library, not a Laravel SSO product — expect to build the controller flow, per-tenant IdP metadata store, attribute mapping, and logout handling yourself. The mlightsaml/lightsaml fork is unvalidated (0 stars, 0 dependents); before adopting, diff it against upstream lightsaml/lightsaml to understand what was patched and why, then treat signature validation and XML parsing as audit-critical code paths — signature-wrapping and XXE are the known failure modes for any SAML implementation. If we adopt, pin the version in composer.json, add it to our dependency-review process, and write integration tests against at least two IdP fixtures (Entra ID and Okta) before it ships in a customer-facing login.
How can I help you explore Laravel packages today?