# SAML-Toolkits/php-saml

Simple SAML toolkit for PHP

Repository: https://github.com/SAML-Toolkits/php-saml
Canonical: https://ross.abutalabs.com/products/php-saml
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-08-07T01:20:21+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 83, longevity 100
- inputs: {"age_days": 5936, "days_push": 27, "days_rel": 114, "gap_med": 0.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1331, forks 499 (observed 2026-08-28T04:04:24.301110+00:00)

## What it is
A PHP library that adds SAML 2.0 support to PHP applications, enabling them to act as a Service Provider for single sign-on with identity providers. It handles SAML request/response generation, validation, metadata, and XML signature verification.

## Use cases
- add SAML single sign-on to a PHP app
- integrate with Okta or Azure AD via SAML
- implement a SAML service provider in PHP
- validate SAML responses and signatures
- generate SAML metadata XML
- support enterprise SSO login in a PHP application

## When to choose
- you need SAML 2.0 SP functionality in a PHP application
- you must integrate with enterprise identity providers that only support SAML
- you want a well-tested library with security hardening against signature wrapping and XEE attacks

## When to avoid
- your application only needs OAuth2 or OpenID Connect rather than SAML
- you are not using PHP
- you need an identity provider implementation rather than a service provider

## Facets
- artifact type: library
- maturity: stable
- function: auth, security, sdk
- domain: security, web-development, backend, developer-tools
- platform: php
- tags: saml, sso, single-sign-on, identity-federation, sp, idp, xml-security

## Member repositories
- SAML-Toolkits/php-saml (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.301110+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:45:14.948274+00:00, confidence not recorded.
  - readme: https://github.com/SAML-Toolkits/php-saml (fetched 2026-08-28T04:04:24.301110+00:00, sha 6d45b92d42b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
