PHPackages                             kryll13/sso - 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. kryll13/sso

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

kryll13/sso
===========

Office365 SSO

v1.0.0(6y ago)113CC-BY-NC-SA-4.0PHPPHP ^7.2

Since Jul 28Pushed 6y agoCompare

[ Source](https://github.com/Kryll13/sso)[ Packagist](https://packagist.org/packages/kryll13/sso)[ RSS](/packages/kryll13-sso/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

SSO for Office 365 Tenant
=========================

[](#sso-for-office-365-tenant)

Thanks to **stevenmaguire/oauth2-microsoft** library.

Install with **Composer** :
---------------------------

[](#install-with-composer-)

```
composer require kryll13/sso

```

Before using it
---------------

[](#before-using-it)

You must have :

- an Office 365 subscription,
- created an App in Azure Active Directory,
- set the URL app,
- set the redirect URL to process the token,
- the client's app ID,
- and the client's app secret.

Setup
-----

[](#setup)

Add those entries in the .env file and replace examples with your data.

```
APP_URL="https://app.example.com"
TENANT_ID="........-....-....-....-............"
APP_ID="........-....-....-....-............"
APP_SECRET="app_secret"
REDIRECT_URI="https://app.example.com"
AUTHORITY_URL="https://login.microsoftonline.com"
AUTHORITY_ENDPOINT_PATH="/oauth2/v2.0/authorize"
AUTHORITY_TOKEN_PATH="/oauth2/v2.0/token"
SCOPES="openid profile offline_access user.read"
AUTHORITY_LOGOUT_PATH="/oauth2/v2.0/logout?post_logout_redirect_uri="

```

Usage
-----

[](#usage)

Instantiate Office365 class and call methods.

- login
- logout
- getUser

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7acf2fd1ecc8170a16dac5801729b9ab5f539be0f41e43296d7b7c673564d1d6?d=identicon)[Kryll13](/maintainers/Kryll13)

---

Top Contributors

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

---

Tags

SSOmicrosoftOffice365

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kryll13-sso/health.svg)

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

###  Alternatives

[league/oauth2-client

OAuth 2.0 Client Library

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

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[onelogin/php-saml

PHP SAML Toolkit

1.3k44.0M107](/packages/onelogin-php-saml)[thenetworg/oauth2-azure

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

2509.6M48](/packages/thenetworg-oauth2-azure)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

556.0M19](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)

PHPackages © 2026

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