PHPackages                             web4people/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. [Security](/categories/security)
4. /
5. web4people/lightsaml

ActiveLibrary[Security](/categories/security)

web4people/lightsaml
====================

SAML 2.0 PHP library

04PHP

Since Jul 5Pushed 1mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#about-lite-saml)

[![Run tests](https://github.com/WebForPeople/lightsaml/actions/workflows/run_tests.yml/badge.svg)](https://github.com/WebForPeople/lightsaml/actions/workflows/run_tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/2159884a00ddb2c528a607da280448c036aabd05eaa6220091667582a29ad48c/68747470733a2f2f706f7365722e707567782e6f72672f7765623470656f706c652f6c6967687473616d6c2f762f737461626c65)](https://packagist.org/packages/web4people/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.

Version for PHP 8.3

Looking for a higher-level API?
-------------------------------

[](#looking-for-a-higher-level-api)

If you want to integrate SAML without dealing with the low-level data model, use the [web4people/saml](https://github.com/WebForPeople/saml) wrapper — it provides ready-to-use `ServiceProviderWrapper` and `IdentityProviderWrapper` built on top of this package.

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

22

—

LowBetter than 21% of packages

Maintenance60

Regular maintenance activity

Popularity4

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/602909?v=4)[Ales Seifert](/maintainers/alesak)[@alesak](https://github.com/alesak)

---

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 (92 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)")[![alesak](https://avatars.githubusercontent.com/u/602909?v=4)](https://github.com/alesak "alesak (2 commits)")[![frostieDE](https://avatars.githubusercontent.com/u/3764924?v=4)](https://github.com/frostieDE "frostieDE (2 commits)")[![frob](https://avatars.githubusercontent.com/u/316176?v=4)](https://github.com/frob "frob (2 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)")[![cedricduffournet](https://avatars.githubusercontent.com/u/8666561?v=4)](https://github.com/cedricduffournet "cedricduffournet (1 commits)")

### Embed Badge

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

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

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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