PHPackages                             netsells/passport-client-cookie - 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. netsells/passport-client-cookie

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

netsells/passport-client-cookie
===============================

2.1.1(3y ago)232.4k↓100%1[1 PRs](https://github.com/netsells/passport-client-cookie/pulls)MITPHP

Since Mar 7Pushed 3y ago6 watchersCompare

[ Source](https://github.com/netsells/passport-client-cookie)[ Packagist](https://packagist.org/packages/netsells/passport-client-cookie)[ RSS](/packages/netsells-passport-client-cookie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (12)Used By (0)

Laravel Passport Client Cookie
==============================

[](#laravel-passport-client-cookie)

This package provides the same cookie based auth that the `CreateFreshApiToken` middleware does, but for `client_credentials`. This is useful when you protect non-user routes, but still want to consume them on the frontend without introducing a proxy.

*Most of the code contained in this package is taken from [Laravel Passport](https://github.com/laravel/passport) and adapted for this use-case - all credit goes to that repo.*

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

[](#installation)

```
composer require netsells/passport-client-cookie
```

Add to your app.php if not using Laravel 5.5+

```
    // Other service providers
    Netsells\PassportClientCookie\ServiceProvider::class,
],
```

Usage
-----

[](#usage)

In `Http/Kernel.php`:

Add to your `web` middleware group, probably at the bottom.

```
\Netsells\PassportClientCookie\Middleware\CreateFreshClientCredentialsApiToken::class,
```

Replace your `CheckClientCredentials` route middleware with the passport client check:

```
'client' => \Netsells\PassportClientCookie\Middleware\CheckClientCredentials::class,
```

### Testing

[](#testing)

You can disable the checking middleware by pulling the `WithoutClientCredentialsMiddleware` trait in and calling `$this->withoutClientCredentialsMiddleware()` at the top of your test.

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~221 days

Recently: every ~205 days

Total

9

Last Release

1212d ago

Major Versions

0.3 → 1.0.02019-12-04

1.1.1 → 2.0.02021-04-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fd3cc944adfb60bb9f271b2ebcf1dde1c26380682db0ba28e029cc42e09cebf?d=identicon)[spamoom](/maintainers/spamoom)

---

Top Contributors

[![spamoom](https://avatars.githubusercontent.com/u/99203?v=4)](https://github.com/spamoom "spamoom (9 commits)")[![georgevlisidis](https://avatars.githubusercontent.com/u/50168690?v=4)](https://github.com/georgevlisidis "georgevlisidis (4 commits)")[![kubatek94](https://avatars.githubusercontent.com/u/6105798?v=4)](https://github.com/kubatek94 "kubatek94 (2 commits)")[![spikey30](https://avatars.githubusercontent.com/u/24419390?v=4)](https://github.com/spikey30 "spikey30 (2 commits)")[![ash-phoenix-wombat](https://avatars.githubusercontent.com/u/85483490?v=4)](https://github.com/ash-phoenix-wombat "ash-phoenix-wombat (1 commits)")[![serversidesquid](https://avatars.githubusercontent.com/u/7472728?v=4)](https://github.com/serversidesquid "serversidesquid (1 commits)")

### Embed Badge

![Health badge](/badges/netsells-passport-client-cookie/health.svg)

```
[![Health](https://phpackages.com/badges/netsells-passport-client-cookie/health.svg)](https://phpackages.com/packages/netsells-passport-client-cookie)
```

###  Alternatives

[dusterio/lumen-passport

Making Laravel Passport work with Lumen

6511.3M9](/packages/dusterio-lumen-passport)[league/oauth2-server-bundle

Symfony bundle .

2344.7M6](/packages/league-oauth2-server-bundle)[corbosman/laravel-passport-claims

Add claims to Laravel Passport JWT Tokens

88655.9k](/packages/corbosman-laravel-passport-claims)[smartins/passport-multiauth

Add support to multi-auth on Laravel Passport

285324.2k1](/packages/smartins-passport-multiauth)[coderello/laravel-passport-social-grant

Social Grant for Laravel Passport

179607.4k3](/packages/coderello-laravel-passport-social-grant)[m1guelpf/laravel-fastlogin

Allow your users to login with FaceID/TouchID

99618.0k](/packages/m1guelpf-laravel-fastlogin)

PHPackages © 2026

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