Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Saml Laravel Package

onelogin/php-saml

PHP toolkit for adding SAML 2.0 SSO to your app. Handles login/logout, assertion processing, metadata generation, and signature/encryption validation, with strict security options and PHP 7.3+ (4.x) or older PHP support via branches.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enterprise SSO Integration: Enable seamless integration with enterprise identity providers (e.g., Okta, Azure AD, ADFS) to support Single Sign-On (SSO) and Single Logout (SLO) for internal tools, portals, or B2B applications.
  • Compliance & Security: Address regulatory requirements (e.g., GDPR, HIPAA) by implementing SAML 2.0 for secure authentication, reducing password fatigue, and mitigating phishing risks.
  • B2B/Partner Portals: Facilitate federated identity for partner ecosystems (e.g., vendor portals, customer self-service platforms) where SAML is a standard for trust.
  • Legacy System Modernization: Integrate SAML into older PHP-based systems (e.g., internal tools, CRM, or ERP) without full rewrites, leveraging Laravel’s compatibility.
  • Roadmap Prioritization:
    • Build vs. Buy: Avoid reinventing SAML from scratch; this package reduces dev effort by ~80% for core SAML functionality.
    • Phased Rollout: Start with SP-Initiated SSO (e.g., for admin dashboards), then expand to IdP-Initiated SSO and SLO for critical paths.
    • Multi-IdP Support: Future-proof by designing for multiple IdPs (e.g., switch from Okta to Azure AD without major refactoring).

When to Consider This Package

Adopt This Package If:

  • Your primary use case is SAML 2.0 SP (Service Provider) integration with IdPs like Okta, Azure AD, or ADFS.
  • You’re using PHP/Laravel and need a battle-tested library (1.3K+ stars, enterprise-grade security patches).
  • Your security requirements include:
    • Message signing/encryption (e.g., for assertions, nameIDs).
    • Strict validation (e.g., strict: true, SHA-256+ signatures, replay attack protection).
    • Metadata signing (for SP metadata trust).
  • You need session-less SAML (decouples SAML auth from app sessions, reducing conflicts).
  • Your team lacks SAML expertise but requires a low-code solution with clear APIs.
  • You’re targeting enterprise/B2B markets where SAML is a de facto standard.

Look Elsewhere If:

  • You need IdP (Identity Provider) functionality (this package is SP-only).
  • Your stack is non-PHP (e.g., Node.js, Python, Java). Use alternatives like:
    • Node.js: passport-saml (for SP/IdP).
    • Java: Spring SAML or OpenSAML.
  • You require OIDC/OAuth 2.0 instead of SAML (use Laravel Socialite or league/oauth2-server).
  • Your IdP is niche (e.g., custom SAML providers with non-standard extensions). Validate compatibility first.
  • You need real-time SAML debugging tools (consider commercial tools like OneLogin’s SAML Tester or SAML Tracer for Chrome).

How to Pitch It (Stakeholders)

For Executives:

"This SAML package lets us integrate with enterprise identity providers (e.g., Okta, Azure AD) in weeks, not months, reducing password fatigue and security risks. It’s used by 1.3K+ projects, including Fortune 500 companies, and handles SSO/SLO securely—critical for compliance and B2B partnerships. The cost? Zero licensing fees (MIT license) and minimal dev effort compared to building from scratch."

Key Outcomes:

  • Faster time-to-market for SSO-enabled products (e.g., admin portals, partner tools).
  • Reduced support costs by eliminating password resets and phishing risks.
  • Future-proof for regulatory compliance (GDPR, HIPAA) and B2B integrations.

For Engineering:

**"This is a production-ready SAML 2.0 SP library for PHP/Laravel with:

  • Zero reinvention: Handles SAML’s complexity (signing, encryption, validation) out of the box.
  • Laravel-friendly: Works with Composer, supports session-less auth, and integrates cleanly with middleware.
  • Security-first: Patches for CVE-2016-1000253 (signature wrapping), SHA-1 deprecation, and replay attack protection.
  • Flexible APIs: Choose between high-level (e.g., AuthRequest) or low-level (XML parsing) control.

Implementation Plan:

  1. Phase 1: Integrate SP-Initiated SSO for [Target App] using the acs.php endpoint.
  2. Phase 2: Add IdP-Initiated SSO and SLO for [Critical Path].
  3. Phase 3: Extend to [B2B Partner Portal] with metadata signing.

Risks Mitigated:

  • Vendor lock-in: MIT license + open-source community.
  • Maintenance: Actively maintained (last release: 2026-05-11) with clear upgrade paths.
  • Performance: Optimized for PHP 7.3+/8.x; minimal overhead for SAML flows."

Call to Action: "Let’s prototype SSO for [App X] in 2 sprints using this library, then expand. I’ll provide a spike plan with IdP-specific configurations."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony