This library contains a collection of resources we use at Jobilla for our Laravel microservices. It's aimed at minimising the friction of setting up a new service by providing sensible defaults from the get-go.
- standardised metrics output in Prometheus format on
/metrics
- JSON-formatted logs with minimal setup
composer require jobilla/cloud-native-laravel
php artisan vendor:publish --tag=cloud-native-config
(note that this will also publish alogging.php
that overwrites the default Laravel logging config)- Optionally, run
php artisan vendor:publish --tag=dockerfile
to publish aDockerfile
to your project root