Download the PHP package kroderdev/laravel-microservice-core without Composer
On this page you can find all versions of the php package kroderdev/laravel-microservice-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kroderdev/laravel-microservice-core
More information about kroderdev/laravel-microservice-core
Files in kroderdev/laravel-microservice-core
Package laravel-microservice-core
Short Description A toolkit to use Laravel effectively as a microservice in a distributed architecture.
License MIT
Informations about the package laravel-microservice-core
Laravel Microservice Core
A Laravel package that provides the infrastructure to build and operate services in a distributed architecture. It delivers JWT authentication, role-based authorization, distributed request tracing, and a multi-service HTTP client — so you can focus on your service logic instead of boilerplate.
Key Features
- JWT authentication middleware with RSA/ECDSA/EdDSA support via public key or JWKS (Keycloak-ready)
- OpenID Connect integration for role and permission extraction from token claims
- Role and permission middleware with Laravel Gate integration (
role:,permission:prefixes) - Multi-service HTTP client with configurable service registry, correlation ID propagation, timeout, and retry
- Distributed request tracing via correlation IDs (W3C Trace Context and OpenTelemetry on the roadmap)
- Health check endpoint out of the box
Quick start
Install the package via Composer:
Publish the configuration to customize defaults:
Basic usage
Service communication
Configure your services in config/microservice.php under services.registry:
Then call any registered service using HTTP macros or the ServiceClient:
JWT authentication
Add the provided middleware to your routes:
Role and permission middleware
Gate authorization
Health check
Enabled by default at GET /health. Configure or disable in config/microservice.php:
Documentation
Full documentation lives in the project wiki.
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
License
This project is open-sourced software licensed under the MIT license.
All versions of laravel-microservice-core with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
firebase/php-jwt Version ^7.0