A toolkit that turns Laravel 12 into a lightweight base for distributed microservices.
- Middleware for JWT validation, correlation IDs and permission checks
- Authorization helpers using roles and permissions
- HTTP client macros and an API Gateway client
- Session guard and controllers for frontend authentication
- Health check endpoint at
/api/health
- Base model for API gateway resources
See the wiki for full documentation.
Install via Composer:
composer require kroderdev/laravel-microservice-core
After installation, publish the configuration file to your Laravel project:
php artisan vendor:publish --provider="Kroderdev\LaravelMicroserviceCore\Providers\MicroserviceServiceProvider"
You can now customize the settings to match your microservice environment.