jonas-amilton / laravel-api-starter-kit
API-only starter kit in Laravel 13 with JWT auth, OpenAPI docs, and JSON root endpoints.
Package info
github.com/jonas-amilton/laravel-api-starter-kit
Type:project
pkg:composer/jonas-amilton/laravel-api-starter-kit
Requires
- php: ^8.3
- dedoc/scramble: ^0.13.55
- laravel/framework: ^13.17
- laravel/tinker: ^3.0
- php-open-source-saver/jwt-auth: ^2.10
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/pail: ^1.2.5
- laravel/pao: ^1.0.6
- laravel/pint: ^1.27
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- phpunit/phpunit: ^12.5.12
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel API Starter Kit
An API-only starter kit built with Laravel 13, featuring JWT authentication (php-open-source-saver/jwt-auth), automatic OpenAPI 3.1 documentation (dedoc/scramble), and clean JSON root endpoints without frontend tooling overhead.
Installation
You can create a new project using either the Laravel Installer or Composer (create-project).
Using Laravel Installer (--using)
- Create a new project from this starter kit:
laravel new project-name --using=jonas-amilton/laravel-api-starter-kit
- Enter the project directory, configure your database credentials in
.env, and generate the JWT secret key:
cd project-name
php artisan jwt:secret
php artisan migrate
Using Composer (create-project)
- Scaffold the project directly via Composer:
composer create-project jonas-amilton/laravel-api-starter-kit project-name
- Enter the directory, configure your
.envdatabase settings, and generate the JWT secret:
cd project-name
php artisan jwt:secret
php artisan migrate
(Note: This is an API-only starter kit—no Node.js or npm build step is required.)
Running the Application
Start the local development server:
php artisan serve
- API Status:
http://127.0.0.1:8000/andhttp://127.0.0.1:8000/api - OpenAPI Documentation (Scramble):
http://127.0.0.1:8000/docs - OpenAPI JSON Spec:
http://127.0.0.1:8000/docs.json - Test Suite:
php artisan test
About Laravel
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Learning Laravel
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
In addition, Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
You can also watch bite-sized lessons with real-world projects on Laravel Learn, where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.
Agentic Development
Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install Laravel Boost to supercharge your AI workflow:
composer require laravel/boost --dev php artisan boost:install
Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.
Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.
License
The Laravel framework is open-sourced software licensed under the MIT license.