PHPackages                             simianbv/introspect - 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. simianbv/introspect

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

simianbv/introspect
===================

Laravel Middleware for letting a resource owner verify a OAuth2 access tokens with a remote authorization server

v2.2.6(3mo ago)06.7k1MITPHPPHP &gt;=7.3|^8.0|^8.1|^8.2|^8.3

Since Feb 20Pushed 3mo agoCompare

[ Source](https://github.com/Simianbv/introspect)[ Packagist](https://packagist.org/packages/simianbv/introspect)[ RSS](/packages/simianbv-introspect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (25)Used By (1)

Installation
============

[](#installation)

Install the package on your resource server

```
composer require simianbv\introspect

```

and add the Service Provider in your `config/app.php`

```
'providers' => [
     // [..]
    \Simianbv\Introspect\ServiceProvider::class
     // [..]
];
```

and add the MiddleWare in your `App/Http/Kernel.php`

```
protected $routeMiddleware = [
    // [..]
    'introspect' => \Simianbv\Introspect\VerifyAccessToken::class,
    // [..]
];
```

publish the configuration

```
php artisan vendor:publish

```

Finally in your `.env` file, define the following properties

```
# Url of the authorization server
INTROSPECT_URL="https://authorization.server.dom"
# Client Identifier as defined in https://tools.ietf.org/html/rfc6749#section-2.2
INTROSPECT_CLIENT_ID="123"
# The client secret
INTROSPECT_CLIENT_SECRET="abcdefg"
# Endpoint for requesting the access token
INTROSPECT_TOKEN_URL="${INTROSPECT_URL}/oauth/token"
# The OAuth2 Introspection endpoint https://tools.ietf.org/html/rfc7662
INTROSPECT_INTROSPECT_URL="${INTROSPECT_URL}/oauth/introspect"
# Optional configuration for requesting an OAuth2 access tokens using the implicit grant flow
INTROSPECT_AUTHORIZATION_URL="${INTROSPECT_URL}/oauth/authorize"
INTROSPECT_REDIRECT_URL=https://my.machine.dom
# the cache prefix to create a unique key per microservice, defaults to the APP_NAME
INTROSPECT_CACHE_PREFIX=HR
# the endpoints for calling in customer/employee or user data
INTROSPECT_USERS_ENDPOINT="${INTROSPECT_URL}/api/users"
INTROSPECT_EMPLOYEES_ENDPOINT="${INTROSPECT_URL}/api/employees"
INTROSPECT_CUSTOMERS_ENDPOINT="${INTROSPECT_URL}/api/customers"
```

Now, use the middleware.

```
Route::group(['middleware'=>'introspect:required-scope1,required-scope2'], function () {
	Route::get('/endpoint1', 'UserController@index');
	Route::resource('/resource', 'OrderController');
});
```

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance79

Regular maintenance activity

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 90.6% 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 ~94 days

Recently: every ~164 days

Total

24

Last Release

109d ago

Major Versions

v1.1.0 → v2.0.02020-11-11

v1.1.1 → v2.1.92020-11-19

PHP version history (5 changes)v1.1.0PHP ^7.0

v2.0.0PHP &gt;=7.3

v2.1.10PHP &gt;=7.3|^8.0

v2.2.1PHP &gt;=7.3|^8.0|^8.1

v2.2.4PHP &gt;=7.3|^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/80dd6fdf3d3250ac6f3b018db939ac5acdc485e26c0a8a3388a06ae452d292e5?d=identicon)[Simian-m](/maintainers/Simian-m)

---

Top Contributors

[![Simian-m](https://avatars.githubusercontent.com/u/37339938?v=4)](https://github.com/Simian-m "Simian-m (48 commits)")[![arietimmerman](https://avatars.githubusercontent.com/u/2026675?v=4)](https://github.com/arietimmerman "arietimmerman (5 commits)")

---

Tags

laravelintrospect

### Embed Badge

![Health badge](/badges/simianbv-introspect/health.svg)

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

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[njoguamos/laravel-turnstile

A laravel wrapper for https://developers.cloudflare.com/turnstile/

2315.9k2](/packages/njoguamos-laravel-turnstile)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[timehunter/laravel-google-recaptcha-v2

Laravel Package for google reCAPTCHA v2

1395.4k](/packages/timehunter-laravel-google-recaptcha-v2)

PHPackages © 2026

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