PHPackages                             invenso/microsoft-jwt - 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. invenso/microsoft-jwt

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

invenso/microsoft-jwt
=====================

A simple library to validate and decode Microsoft Azure Active Directory (Azure AD), Microsoft Active Directory Federation Services (ADFS) JSON Web Tokens (JWT) in PHP, conforming to RFC 7519

1.3.2(4mo ago)05.3k↓33.3%BSD-3-ClausePHPPHP &gt;=8.0.2

Since Nov 1Pushed 4mo agoCompare

[ Source](https://github.com/InvensoGroup/microsoft-jwt)[ Packagist](https://packagist.org/packages/invenso/microsoft-jwt)[ Docs](https://github.com/InvensoGroup/microsoft-jwt)[ RSS](/packages/invenso-microsoft-jwt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (11)Used By (0)

[![Packagist](https://camo.githubusercontent.com/90b132dea3478c90830f54ada77b3b1105a78c0bb7856c08050726bb7e914c22/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f496e76656e736f47726f75702f6d6963726f736f66742d6a77743f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/InvensoGroup/microsoft-jwt)[![GitHub](https://camo.githubusercontent.com/67ab863b5fcc14f80634c7f9c76dedc1e04269bb022633aa633fb5c2e947cf38/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f496e76656e736f47726f75702f6d6963726f736f66742d6a77743f6c6162656c3d476974487562267374796c653d666f722d7468652d6261646765)](https://github.com/InvensoGroup/microsoft-jwt)[![Test](https://camo.githubusercontent.com/a1b6eee80d782c350c5c214fcc061eb34873d5155a5d0a05a62aa889184cb477/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f496e76656e736f47726f75702f6d6963726f736f66742d6a77742f504850253230546573743f6c6162656c3d54455354267374796c653d666f722d7468652d6261646765)](https://github.com/InvensoGroup/microsoft-jwt)[![Coverage Status](https://camo.githubusercontent.com/adb10e89aa3095f74866bad1fb6fe45e7cedc3a7c0828c81d462f584095c907d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f496e76656e736f47726f75702f6d6963726f736f66742d6a77742f6d61737465723f7374796c653d666f722d7468652d6261646765)](https://coveralls.io/github/InvensoGroup/microsoft-jwt?branch=master)[![GitHub license](https://camo.githubusercontent.com/180d242a322fbf649794dc3a16fa4f7b9aeb40f2f5ada450923ad1484706690a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f496e76656e736f47726f75702f6d6963726f736f66742d6a77743f636f6c6f723d677265656e267374796c653d666f722d7468652d6261646765)](https://github.com/InvensoGroup/microsoft-jwt/blob/master/LICENCE)
[![firebase/php-jwt Version](https://camo.githubusercontent.com/5829e88ac71f4d92a0e53b5df096fa05d01a99d625c16225f53375dadfebab6d/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d66697265626173652532467068702d6a7774266d6573736167653d352e322e3026636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://github.com/firebase/php-jwt/tree/v5.2.0)

microsoft-jwt
=============

[](#microsoft-jwt)

A simple library to validate and decode Microsoft Azure Active Directory ([Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-app-types)), Microsoft Active Directory Federation Services (ADFS) JSON Web Tokens (JWT) in PHP, conforming to [RFC 7519](https://tools.ietf.org/html/rfc7519).

Multitenant support

**Forked From [firebase/php-jwt](https://github.com/firebase/php-jwt)**

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

[](#installation)

Use composer to manage your dependencies and download microsoft-jwt:

```
composer require Invenso/microsoft-jwt
```

Example
-------

[](#example)

### ADFS

[](#adfs)

```
