lushdigital / microservice-core
A set of core functionality and convenience classes for a Lumen microservice.
Installs: 5 462
Dependents: 1
Suggesters: 0
Security: 0
Stars: 10
Watchers: 7
Forks: 5
Open Issues: 0
Requires
- php: >=5.6.4
- laravel/lumen-framework: ^5.3
Requires (Dev)
- phpunit/phpunit: ~5.0
README
A set of core functionality and convenience classes for a Lumen microservice.
Description
This package is intended to provide a quick and easy bootstrap of functionality that a micro service is expected to provide. This includes an information route that could be used by a service registry, it also includes a health check route to verify your microservice is working.
The package also contains some convenience classes to help develop microservices.
Package Contents
- Core micro service controller
- Micro service helper class
- Base enumeration class.
- Exception handling trait
- JSON Response trait
- String handling trait
Installation
Install the package as normal:
$ composer require lushdigital/microservice-core
Register the service provider with Lumen in the bootstrap/app.php
file:
$app->register(LushDigital\MicroServiceCore\MicroServiceServiceProvider::class);