PHPackages                             billyranario/laravel-passport-boilerplate - 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. [API Development](/categories/api)
4. /
5. billyranario/laravel-passport-boilerplate

ActiveLibrary[API Development](/categories/api)

billyranario/laravel-passport-boilerplate
=========================================

A Laravel package to quickly start a new project with Laravel Passport

v3.1(1y ago)0247MITPHPPHP &gt;=7.4

Since Sep 9Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/billyranario/laravel-passport-boilerplate)[ Packagist](https://packagist.org/packages/billyranario/laravel-passport-boilerplate)[ RSS](/packages/billyranario-laravel-passport-boilerplate/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (4)Versions (23)Used By (0)

LaravelBoilerPlate by Billy Joel Ranario
========================================

[](#laravelboilerplate-by-billy-joel-ranario)

Description
-----------

[](#description)

`LaravelBoilerPlate` is a Laravel package that provides a set of tools to help you build APIs and web applications faster.

Requirements
------------

[](#requirements)

- **PHP version:** 7.4 and above
- **Laravel version:** 6.0 and above
- **Laravel Passport:** ^12.0
- **Billyranario Prostarter-Kit:** ^1.0

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

```
composer require laravel/passport
composer require billyranario/prostarterkit
php artisan vendor:publish --tag=passport-migrations
php artisan vendor:publish --tag=prostarter-kit

composer require billyranario/laravel-passport-boilerplate
php artisan vendor:publish --tag=billyranario-boilerplate --force

php artisan migrate
```

edit `config/auth.php` file

```
return [
    ..., // Other config
    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        // Add this following code below
        'api' => [
            'driver' => 'passport',
            'provider' => 'users',
        ],
    ],
];
```

```
php artisan passport:keys
php artisan passport:client --password
> psk-password-grant
> [0] users

php artisan passport:client --personal
> psk-personal-access
```

### Creating Superadmin

[](#creating-superadmin)

On your `.env` file, add the following code below. This will provide a default web url for your reset password form page. The `APP_ADMIN_PASS` is the default password for creating an admin user. You can change it to your desired password. If not specified, the default password is `Abc@123456`.

```
APP_WEB_URL=http://localhost:4202
APP_ADMIN_PASS=secret
```

Once everything is setup, you run the artisan command below to create an admin user.

```
php artisan admin:create
php artisan admin:create --super # to create a super admin
```

This will ask you a password to proceed. The password should match to the value you set in the APP\_ADMIN\_PASS in your `.env` file.

### Admin:API Middleware Kernel.php

[](#adminapi-middleware-kernelphp)

Open your `app/Http/Kernel.php` file and insert the following code below.

```
    protected $middlewareAliases = [
        // other aliases....
        'admin.api' => \App\Http\Middleware\Admin\AdminApi::class, //  [UserObserver::class],
    ];
```

### Update Routes

[](#update-routes)

`RouteServiceProvider.php` Insert the followwing

```
    public function boot(): void
    {
        RateLimiter::for('api', function (Request $request) {
            return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
        });

        $this->routes(function () {
            Route::middleware('api')
                ->prefix('api')
                ->group(base_path('routes/api.php'));

            // INSERT THIS BLOCK
            Route::middleware('api')
                ->prefix('api/admin')
                ->group(base_path('routes/admin.php'));
            // END

            Route::middleware('web')
                ->group(base_path('routes/web.php'));
        });
    }
```

Contributing
------------

[](#contributing)

Contributions are welcome. Please submit a PR or open an issue.

License
-------

[](#license)

This package is open-source and licensed under the MIT License.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance46

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Recently: every ~75 days

Total

22

Last Release

631d ago

Major Versions

v1.9 → v2.02023-09-09

v2.9 → v3.02024-04-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10057058?v=4)[Billy Ranario](/maintainers/billyranario)[@billyranario](https://github.com/billyranario)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.3k2.2k](/packages/unopim-unopim)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M922](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k36.4M126](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k13.5M60](/packages/knuckleswtf-scribe)[justbetter/laravel-magento-client

A client to interact with Magento

49108.7k14](/packages/justbetter-laravel-magento-client)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.5k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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