nitish / laravel-api-starter
A Laravel API Starter Kit with Repository-Service Pattern and Swagger, Sanctum, Spatie Integration.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.2
- darkaonline/l5-swagger: ^9.0
- laravel/framework: ^12.0
- laravel/sanctum: ^4.1
- laravel/tinker: ^2.10.1
- spatie/laravel-medialibrary: ^11.13
- spatie/laravel-permission: ^6.18
Requires (Dev)
- fakerphp/faker: ^1.23
- laravel/pail: ^1.2.2
- laravel/pint: ^1.13
- laravel/sail: ^1.41
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.6
- phpunit/phpunit: ^11.5.3
This package is not auto-updated.
Last update: 2025-06-29 09:11:37 UTC
README
A scalable, modular, and well-structured Laravel API Starter Kit built with best industry practices including Authentication, Authorization, Role & Permission Management, CRUD APIs, and Swagger API Documentation.
โ Features
- ๐ Authentication (Login & Register)
- ๐ฅ Authorization (Role & Permission based access)
- ๐งโ๐ผ User Management (CRUD)
- ๐งฉ Module Management (CRUD)
- ๐ Role & Permission Management
- ๐งพ Swagger API Documentation for easy API testing
- ๐งฌ Built using Repository-Service Pattern
- ๐ฑ Seeders for Users, Roles, and Permissions
๐ฆ Packages Used
Feature | Package |
---|---|
Role & Permissions | spatie/laravel-permission |
Swagger API Docs | l5-swagger |
Media Uploads | spatie/laravel-medialibrary |
๐๏ธ Project Architecture
- Repository Pattern
- Service Layer
- Swagger Integration
- Modular & Scalable Codebase
๐ ๏ธ Installation
Prerequisites
- PHP >= 8.2
- Composer
- Laravel >= 12.x
- MySQL or compatible DB
๐งฌ Clone & Setup
# Create a new Laravel project using this starter composer create-project nitish/laravel-api-starter # Navigate into the project cd laravel-api-starter # Install PHP dependencies composer install # Copy environment file cp .env.example .env # Generate application key php artisan key:generate # Configure your `.env` file with database and mail details # Run migrations and seeders php artisan migrate --seed # Install Swagger php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider" php artisan l5-swagger:generate --- ## ๐ License This project is open-source and available under the [MIT License](LICENSE). --- ## ๐จโ๐ป Author Developed by **Nitish Kumar** Feel free to contribute or fork this repository. --- ## ๐ Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. --- ## ๐ก Support If you find this project helpful, give it a โญ on GitHub and share it with your dev friends!