PHPackages                             harshpawar/laravel-passport - 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. harshpawar/laravel-passport

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

harshpawar/laravel-passport
===========================

Laravel passport authentication package easy installation.

v1.0.10(2y ago)015PHP

Since Jun 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/harshpawar/laravel-passport-auth)[ Packagist](https://packagist.org/packages/harshpawar/laravel-passport)[ RSS](/packages/harshpawar-laravel-passport/feed)WikiDiscussions master Synced 2d ago

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

Laravel Passport Auth Package
-----------------------------

[](#laravel-passport-auth-package)

- To authenticate laravel apis

Version : 1.0.0
---------------

[](#version--100)

Description : First all files added without test.

Version : 1.0.1
---------------

[](#version--101)

Description : README.md file added.

Introduction
------------

[](#introduction)

api authentication package.

Instructions
------------

[](#instructions)

First, install this package:

```
composer require harshpawar/laravel-passport

```

Next, move the files from vendor folder to root folder using below script

```
php artisan vendor:publish --tag=passport-config
php artisan vendor:publish --tag=controllers

php artisan migrate
php artisan passport:install

```

Configure Passport in AuthServiceProvider:

```
use Laravel\Passport\Passport;

public function boot()
{
    $this->registerPolicies();

    Passport::ignoreRoutes();

    // Add Passport routes
    Passport::tokensExpireIn(now()->addDays(15));
    Passport::refreshTokensExpireIn(now()->addDays(30));
    Passport::personalAccessTokensExpireIn(now()->addMonths(6));

    // Register Passport routes manually
    if (! $this->app->routesAreCached()) {
        require base_path('routes/api.php');
    }
}

```

Use Middleware: Ensure your routes are protected by the auth:api middleware.

```
Route::middleware('auth:api')->group(function () {
    // Protected routes
});

```

Add config/auth.php guards details

```
'api' => [
    'driver' => 'passport',
    'provider' => 'users',
],

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

10

Last Release

746d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10338170?v=4)[Harsh Pawar](/maintainers/harshpawar)[@harshpawar](https://github.com/harshpawar)

---

Top Contributors

[![harshpawar](https://avatars.githubusercontent.com/u/10338170?v=4)](https://github.com/harshpawar "harshpawar (7 commits)")

### Embed Badge

![Health badge](/badges/harshpawar-laravel-passport/health.svg)

```
[![Health](https://phpackages.com/badges/harshpawar-laravel-passport/health.svg)](https://phpackages.com/packages/harshpawar-laravel-passport)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k9](/packages/jeremy379-laravel-openid-connect)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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