PHPackages                             litesaml/lightsaml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. litesaml/lightsaml

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

litesaml/lightsaml
==================

SAML 2.0 PHP library

4.6.1(2mo ago)1055.5M—2.3%30[16 issues](https://github.com/litesaml/lightsaml/issues)[3 PRs](https://github.com/litesaml/lightsaml/pulls)16MITPHPPHP ^8.1CI passing

Since Sep 29Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/litesaml/lightsaml)[ Packagist](https://packagist.org/packages/litesaml/lightsaml)[ RSS](/packages/litesaml-lightsaml/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (22)Versions (72)Used By (16)

About Lite Saml
===============

[](#about-lite-saml)

[![Run tests](https://github.com/litesaml/lightsaml/actions/workflows/run_tests.yml/badge.svg)](https://github.com/litesaml/lightsaml/actions/workflows/run_tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/b9273e66cc197a3a3d7a5e6c162212b18ab088f28c3b0f87bddc9fe885e60a34/68747470733a2f2f706f7365722e707567782e6f72672f6c69746573616d6c2f6c6967687473616d6c2f762f737461626c65)](https://packagist.org/packages/litesaml/lightsaml)

Lite Saml Implements basic SAML 2.0 data model classes, serialization/deserialization to/from xml with XML security and certificates support, and message encapsulations to bindings. Covered with unit tests.

Installation
------------

[](#installation)

This package requires `php:^8.1`

You can install it via composer:

```
composer require litesaml/lightsaml
```

Documentation
-------------

[](#documentation)

You can find our Cookbook in [this dedicated website](https://litesaml.github.io/cookbook/).

Contributing
------------

[](#contributing)

Lite Saml is an open source project under [MIT License](https://github.com/litesaml/lightsaml/blob/master/LICENSE.md) and is [open for contributions](https://github.com/litesaml/lightsaml/blob/master/CONTRIBUTING.md).

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance81

Actively maintained with recent releases

Popularity61

Solid adoption and visibility

Community38

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 53.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~56 days

Recently: every ~91 days

Total

69

Last Release

82d ago

Major Versions

0.1.0 → 1.0.0-beta.12015-10-19

1.4.1 → 2.0.02021-01-20

v2.3.4 → 3.0.02022-05-27

3.0.3 → 4.0.02022-06-23

4.4.0 → 5.x-dev2025-02-28

PHP version history (5 changes)0.1.0PHP &gt;=5.5.1

1.4.1PHP &gt;=5.6

2.0.0PHP &gt;=7.2.5

4.0.0PHP &gt;=7.4

4.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d65323c79234220d55e60e176f917e1c1db9b90215702e3e11f8b692977285b8?d=identicon)[Willi@m](/maintainers/Willi@m)

---

Top Contributors

[![tmilos](https://avatars.githubusercontent.com/u/1818373?v=4)](https://github.com/tmilos "tmilos (156 commits)")[![william-suppo](https://avatars.githubusercontent.com/u/6459452?v=4)](https://github.com/william-suppo "william-suppo (74 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (12 commits)")[![EmilyShepherd](https://avatars.githubusercontent.com/u/2132420?v=4)](https://github.com/EmilyShepherd "EmilyShepherd (10 commits)")[![cb8](https://avatars.githubusercontent.com/u/10119913?v=4)](https://github.com/cb8 "cb8 (6 commits)")[![francislavoie](https://avatars.githubusercontent.com/u/2111701?v=4)](https://github.com/francislavoie "francislavoie (5 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (3 commits)")[![maxhelias](https://avatars.githubusercontent.com/u/12966574?v=4)](https://github.com/maxhelias "maxhelias (3 commits)")[![TimWolla](https://avatars.githubusercontent.com/u/209270?v=4)](https://github.com/TimWolla "TimWolla (2 commits)")[![frob](https://avatars.githubusercontent.com/u/316176?v=4)](https://github.com/frob "frob (2 commits)")[![frostieDE](https://avatars.githubusercontent.com/u/3764924?v=4)](https://github.com/frostieDE "frostieDE (2 commits)")[![nikow13](https://avatars.githubusercontent.com/u/16886143?v=4)](https://github.com/nikow13 "nikow13 (1 commits)")[![nztim](https://avatars.githubusercontent.com/u/3453450?v=4)](https://github.com/nztim "nztim (1 commits)")[![pataar](https://avatars.githubusercontent.com/u/3403851?v=4)](https://github.com/pataar "pataar (1 commits)")[![seb2411](https://avatars.githubusercontent.com/u/1470048?v=4)](https://github.com/seb2411 "seb2411 (1 commits)")[![stephpy](https://avatars.githubusercontent.com/u/232744?v=4)](https://github.com/stephpy "stephpy (1 commits)")[![stevebauman](https://avatars.githubusercontent.com/u/6421846?v=4)](https://github.com/stevebauman "stevebauman (1 commits)")[![theodorejb](https://avatars.githubusercontent.com/u/3053271?v=4)](https://github.com/theodorejb "theodorejb (1 commits)")[![TurtleSmoke](https://avatars.githubusercontent.com/u/46165291?v=4)](https://github.com/TurtleSmoke "TurtleSmoke (1 commits)")[![Kuppit](https://avatars.githubusercontent.com/u/712395?v=4)](https://github.com/Kuppit "Kuppit (1 commits)")

---

Tags

phplibrarySAML 2.0lightSAMLSingle SignOnSingle Logout

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/litesaml-lightsaml/health.svg)

```
[![Health](https://phpackages.com/badges/litesaml-lightsaml/health.svg)](https://phpackages.com/packages/litesaml-lightsaml)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[2amigos/2fa-library

2 Factor Authentication (2FA) library

34367.1k7](/packages/2amigos-2fa-library)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
