PHPackages                             joselfonseca/laravel-api - 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. [Framework](/categories/framework)
4. /
5. joselfonseca/laravel-api

AbandonedArchivedProject[Framework](/categories/framework)

joselfonseca/laravel-api
========================

Laravel API starter Kit will give you most of the boilerplate that you need for creating Laravel API's

V12.0.0(3y ago)4242.5k115[1 PRs](https://github.com/joselfonseca/laravel-api/pulls)MITBladePHP ^8.0.2

Since Feb 25Pushed 3y ago28 watchersCompare

[ Source](https://github.com/joselfonseca/laravel-api)[ Packagist](https://packagist.org/packages/joselfonseca/laravel-api)[ RSS](/packages/joselfonseca-laravel-api/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (52)Used By (0)

Laravel API Starter Kit
-----------------------

[](#laravel-api-starter-kit)

[![Total Downloads](https://camo.githubusercontent.com/04345a24124b2992a3b0e4856ee29dd9d3126f0c7449fd43d72deacb15be9bcb/68747470733a2f2f706f7365722e707567782e6f72672f6a6f73656c666f6e736563612f6c61726176656c2d6170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/joselfonseca/laravel-api)[![License](https://camo.githubusercontent.com/f45d904953153ca304a2328243d2733e095eee13a631a1f390709885d41dd692/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f6c6963656e73652e737667)](https://packagist.org/packages/laravel/framework)

[![](https://camo.githubusercontent.com/767b79dc799548df5adefded7193305c83384983df18b4bc1e16988a5386c891/68747470733a2f2f6465762d746f2d75706c6f6164732e73332e616d617a6f6e6177732e636f6d2f692f346f6d32726776756c63363838746c636a3331632e6a7067)](https://camo.githubusercontent.com/767b79dc799548df5adefded7193305c83384983df18b4bc1e16988a5386c891/68747470733a2f2f6465762d746f2d75706c6f6164732e73332e616d617a6f6e6177732e636f6d2f692f346f6d32726776756c63363838746c636a3331632e6a7067)

Laravel API starter Kit will provide you with the tools for making API's that everyone will love, API Authentication is already provided with passport.

Here is a list of the packages installed:

- [Laravel Passport](https://laravel.com/docs/8.x/passport)
- [Laravel Socialite](https://laravel.com/docs/8.x/socialite)
- [Laravel Fractal](https://github.com/spatie/laravel-fractal)
- [Laravel Permission](https://github.com/spatie/laravel-permission)
- [Intervention Image](http://image.intervention.io/)

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

[](#installation)

To install the project you can use composer

```
composer create-project joselfonseca/laravel-api new-api
```

Modify the .env file to suit your needs

```
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

```

When you have the .env with your database connection set up you can run your migrations

```
php artisan migrate
```

Then run `php artisan passport:install`

Run `php artisan db:seed` and you should have a new user with the roles and permissions set up

Tests
-----

[](#tests)

Navigate to the project root and run `vendor/bin/phpunit` after installing all the composer dependencies and after the .env file was created.

API documentation
-----------------

[](#api-documentation)

The project uses API blueprint as API spec and [Aglio](https://github.com/danielgtaylor/aglio) to render the API docs, please install aglio and [merge-apib](https://github.com/ValeriaVG/merge-apib) in your machine and then you can run the following command to compile and render the API docs

```
composer api-docs
```

License
-------

[](#license)

The Laravel API Starter kit is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 87.3% 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 ~48 days

Recently: every ~120 days

Total

50

Last Release

1366d ago

Major Versions

7.0.1 → 8.0.02019-10-29

8.0.x-dev → 9.0.02020-08-20

9.0.x-dev → 10.0.02020-10-02

10.0.1 → 11.0.02021-01-10

11.2.2 → V12.0.02022-08-12

PHP version history (10 changes)v1.0.0PHP &gt;=5.5.9

2.0.0PHP &gt;=5.6.4

3.0.0PHP &gt;=7.0.0

4.0.4PHP &gt;=7.1.0

5.0.x-devPHP ^7.1.3

7.0.x-devPHP ^7.2

9.0.0PHP ^7.2.5

10.0.0PHP ^7.3

11.0.0PHP &gt;=7.4

V12.0.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f0e6436d44c442e1655f3ba09563c9d0653139d02148278471e395029e99ac7?d=identicon)[joselfonseca](/maintainers/joselfonseca)

---

Top Contributors

[![joselfonseca](https://avatars.githubusercontent.com/u/2046653?v=4)](https://github.com/joselfonseca "joselfonseca (178 commits)")[![kslimani](https://avatars.githubusercontent.com/u/1758996?v=4)](https://github.com/kslimani "kslimani (10 commits)")[![JuanDMeGon](https://avatars.githubusercontent.com/u/5510960?v=4)](https://github.com/JuanDMeGon "JuanDMeGon (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

aglioapicomposerlaravel-apipassportapiframeworklaravelrestoauth2

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/joselfonseca-laravel-api/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)

PHPackages © 2026

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