PHPackages                             telabotanica/tb-auth-php - 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. telabotanica/tb-auth-php

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

telabotanica/tb-auth-php
========================

A library that helps integrating your PHP software with Tela Botanica's SSO

0.2.0(6y ago)0971GPLv3PHPPHP &gt;=5.3.0

Since Mar 8Pushed 6y ago4 watchersCompare

[ Source](https://github.com/telabotanica/tb-auth-php)[ Packagist](https://packagist.org/packages/telabotanica/tb-auth-php)[ Docs](https://github.com/telabotanica/tb-auth-php)[ RSS](/packages/telabotanica-tb-auth-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (10)Used By (0)

tb-auth-php
===========

[](#tb-auth-php)

A library that helps integrating your PHP webservices with Tela Botanica's SSO

install
-------

[](#install)

```
composer install telabotanica/tb-auth-php

```

usage
-----

[](#usage)

```
$config = array(
	"annuaireURL" => "https://www.tela-botanica.org/uri-of-sso-service",
	"admins" => array(
		"john@example.org",
		"mary@othersite.org"
	),
	"adminRoles" => array(
		"tb_my-application_admin"
	)
);
$auth = new AuthTB($config);
$userData = $auth->getUser();
```

config parameters
-----------------

[](#config-parameters)

### mandatory

[](#mandatory)

- **annuaireURL** : URL of Tela Botanica SSO service

### optional

[](#optional)

- **ignoreSSLIssues** : if `true`, curl will be lazy on SSL host verification, and prevent errors with old versions of libssl
- **headerName** : expected header to read the token from (defaults to "Authorization")
- **admins** : a list of email addresses of people who will be considered as "admins", ie `isAdmin()` will return `true`
- **adminRoles** : a list of roles whose members will be considered as "admins", ie `isAdmin()` will return `true`
- **authorizedIPs** : a list of IP addresses for the which `hasAuthorizedIP()` will return `true`

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~175 days

Recently: every ~269 days

Total

9

Last Release

2366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a24ed88969fe2a72aa0db9c2106ca4565f750d7da58e54f7ba9b310c1ae9dbae?d=identicon)[Tela Botanica](/maintainers/Tela%20Botanica)

---

Top Contributors

[![kstefanini](https://avatars.githubusercontent.com/u/5382753?v=4)](https://github.com/kstefanini "kstefanini (2 commits)")

---

Tags

SSOtelabotanicatela-botanica

### Embed Badge

![Health badge](/badges/telabotanica-tb-auth-php/health.svg)

```
[![Health](https://phpackages.com/badges/telabotanica-tb-auth-php/health.svg)](https://phpackages.com/packages/telabotanica-tb-auth-php)
```

###  Alternatives

[league/oauth2-client

OAuth 2.0 Client Library

3.8k125.2M1.3k](/packages/league-oauth2-client)[league/oauth1-client

OAuth 1.0 Client Library

996106.2M115](/packages/league-oauth1-client)[onelogin/php-saml

PHP SAML Toolkit

1.3k46.5M134](/packages/onelogin-php-saml)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

24610.3M72](/packages/thenetworg-oauth2-azure)[hslavich/oneloginsaml-bundle

OneLogin SAML Bundle for Symfony

1502.5M1](/packages/hslavich-oneloginsaml-bundle)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

264817.2k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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