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 2w 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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

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

Unknown

Total

1

Last Release

2529d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15181676?v=4)[Kryll13](/maintainers/Kryll13)[@Kryll13](https://github.com/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

[thenetworg/oauth2-azure

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

24610.3M73](/packages/thenetworg-oauth2-azure)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)

PHPackages © 2026

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