PHPackages                             mstaack/lumen-api-starter - 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. mstaack/lumen-api-starter

AbandonedArchivedProject[Framework](/categories/framework)

mstaack/lumen-api-starter
=========================

Lumen Starter for APIs

v2.0(7y ago)571619[1 issues](https://github.com/mstaack/lumen-api-starter/issues)MITPHPPHP &gt;=7.1.3

Since Mar 4Pushed 6y ago4 watchersCompare

[ Source](https://github.com/mstaack/lumen-api-starter)[ Packagist](https://packagist.org/packages/mstaack/lumen-api-starter)[ RSS](/packages/mstaack-lumen-api-starter/feed)WikiDiscussions master Synced today

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

Lumen 5.8 API Starter with Paseto
=================================

[](#lumen-58-api-starter-with-paseto)

[![Build Status](https://camo.githubusercontent.com/470295a83ad107330816d07851bad26d7e146d05db6195480fc239db894507c2/68747470733a2f2f7472617669732d63692e6f72672f6d73746161636b2f6c756d656e2d6170692d737461727465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mstaack/lumen-api-starter)

Notes
=====

[](#notes)

- Comes with make &amp; route command for all your needs
- Uses jwt token alternative **paseto**. Read [Paseto](https://github.com/paragonie/paseto)

Included Packages
=================

[](#included-packages)

- [Clockwork](https://underground.works/clockwork/) Easier debugging with APIs
- [PHPUnit Pretty Result Printer](https://github.com/mikeerickson/phpunit-pretty-result-printer) Nice phpunit results
- [Collision](https://github.com/nunomaduro/collision) Better Console Error Handling
- [Lumen Form Requests](https://github.com/pearlkrishn/lumen-request-validate) Abstract Validation &amp; Authorization into classes
- [Laravel Dump Server](https://github.com/beyondcode/laravel-dump-server) Dump data to the artisan server
- [Laravel-Apidoc-Generator](https://mpociot/laravel-apidoc-generator) Generate api docs
- [spatie/laravel-permission](https://github.com/spatie/laravel-permission) Roles &amp; Permissions

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

[](#installation)

- run `git clone git@github.com:mstaack/lumen-api-starter.git`
- reinit your repository with `rm -rf .git && git init`
- run `composer install` to install dependencies (consider using homestead via `vagrant up`)
- copy `env.example` to `.env`
- Setup your application &amp; auth keys with `composer keys` &amp; check `.env`file (automatically done via composer hook)
- run migrations &amp; seeders with `artisan migrate --seed` (within your vm using `vagrant ssh`)
- A default user is created during seeding: `demo@demo.com` / `password`
- To quickly start a dev server run `./artisan serve` (or via `homestead.test` for the vm)
- Also consider running `composer meta` when adding models for better autocompletion (automatically done via composer hook)
- Run included tests with `phpunit` within vagrant's code directory
- Generate your api docs with `artisan apidoc:generate`

Routes
======

[](#routes)

```
➜  lumen-api-starter git:(update-5.8) ✗ ./artisan route:list
+------+--------------------------------+-----------------------+-------------------------------------+-----------------+--------------------------+
| Verb | Path                           | NamedRoute            | Controller                          | Action          | Middleware               |
+------+--------------------------------+-----------------------+-------------------------------------+-----------------+--------------------------+
| GET  | /                              |                       | None                                | Closure         |                          |
| POST | /auth/register                 | auth.register         | App\Http\Controllers\AuthController | register        |                          |
| POST | /auth/login                    | auth.login            | App\Http\Controllers\AuthController | login           |                          |
| GET  | /auth/verify/{token}           | auth.verify           | App\Http\Controllers\AuthController | verify          |                          |
| POST | /auth/password/forgot          | auth.password.forgot  | App\Http\Controllers\AuthController | forgotPassword  |                          |
| POST | /auth/password/recover/{token} | auth.password.recover | App\Http\Controllers\AuthController | recoverPassword |                          |
| GET  | /auth/user                     | auth.user             | App\Http\Controllers\AuthController | getUser         | auth                     |
| GET  | /admin                         |                       | None                                | Closure         | auth, role:administrator |
+------+--------------------------------+-----------------------+-------------------------------------+-----------------+--------------------------+

```

Artisan Commands
================

[](#artisan-commands)

```
➜  lumen-api-starter git:(master) ./artisan
Laravel Framework Lumen (5.6.4) (Laravel Components 5.6.*)

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  clear-compiled            Remove the compiled class file
  dump-server               Start the dump server to collect dump information.
  help                      Displays help for a command
  list                      Lists commands
  migrate                   Run the database migrations
  optimize                  Optimize the framework for better performance
  serve                     Serve the application on the PHP development server
  tinker                    Interact with your application
 auth
  auth:clear-resets         Flush expired password reset tokens
  auth:generate-paseto-key  Creates a new authentication key for paseto
 cache
  cache:clear               Flush the application cache
  cache:forget              Remove an item from the cache
  cache:table               Create a migration for the cache database table
 clockwork
  clockwork:clean           Cleans Clockwork request metadata
 db
  db:seed                   Seed the database with records
 ide-helper
  ide-helper:eloquent       Add \Eloquent helper to \Eloquent\Model
  ide-helper:generate       Generate a new IDE Helper file.
  ide-helper:meta           Generate metadata for PhpStorm
  ide-helper:models         Generate autocompletion for models
 key
  key:generate              Set the application key
 make
  make:command              Create a new Artisan command
  make:controller           Create a new controller class
  make:event                Create a new event class
  make:job                  Create a new job class
  make:listener             Create a new event listener class
  make:mail                 Create a new email class
  make:middleware           Create a new middleware class
  make:migration            Create a new migration file
  make:model                Create a new Eloquent model class
  make:policy               Create a new policy class
  make:provider             Create a new service provider class
  make:request              Create a new form request class
  make:resource             Create a new resource
  make:seeder               Create a new seeder class
  make:test                 Create a new test class
 migrate
  migrate:fresh             Drop all tables and re-run all migrations
  migrate:install           Create the migration repository
  migrate:refresh           Reset and re-run all migrations
  migrate:reset             Rollback all database migrations
  migrate:rollback          Rollback the last database migration
  migrate:status            Show the status of each migration
 queue
  queue:failed              List all of the failed queue jobs
  queue:failed-table        Create a migration for the failed queue jobs database table
  queue:flush               Flush all of the failed queue jobs
  queue:forget              Delete a failed queue job
  queue:listen              Listen to a given queue
  queue:restart             Restart queue worker daemons after their current job
  queue:retry               Retry a failed queue job
  queue:table               Create a migration for the queue jobs database table
  queue:work                Start processing jobs on the queue as a daemon
 route
  route:list                Display all registered routes.
 schedule
  schedule:run              Run the scheduled commands

```

Generated Docs Screenshot
=========================

[](#generated-docs-screenshot)

[![image](https://user-images.githubusercontent.com/10169509/54946091-a154de00-4f37-11e9-8a96-3ce71c189b6d.png)](https://user-images.githubusercontent.com/10169509/54946091-a154de00-4f37-11e9-8a96-3ce71c189b6d.png)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~29 days

Total

14

Last Release

2603d ago

Major Versions

v1.12 → v2.02019-03-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/3aca68532d832a4b8f9ed8e787159255b7d44ec3742f30f9c6de04ad6dc18f58?d=identicon)[mstaack](/maintainers/mstaack)

---

Top Contributors

[![mstaack](https://avatars.githubusercontent.com/u/10169509?v=4)](https://github.com/mstaack "mstaack (10 commits)")[![stefanvanherwijnen](https://avatars.githubusercontent.com/u/5968971?v=4)](https://github.com/stefanvanherwijnen "stefanvanherwijnen (10 commits)")

---

Tags

apijsonlaravellumen-frameworkphpphp7jsonapiframeworklaravelrestlumen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mstaack-lumen-api-starter/health.svg)

```
[![Health](https://phpackages.com/badges/mstaack-lumen-api-starter/health.svg)](https://phpackages.com/packages/mstaack-lumen-api-starter)
```

###  Alternatives

[lanin/laravel-api-debugger

Easily debug your JSON API.

2311.8M](/packages/lanin-laravel-api-debugger)[saad/api-debugger

Easily debug your JSON API.

1170.1k](/packages/saad-api-debugger)[lanin/laravel-api-exceptions

All in one solution for exception for JSON REST APIs on Laravel and Lumen.

40102.4k](/packages/lanin-laravel-api-exceptions)

PHPackages © 2026

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