filld / service-status
A simple status response to the root `/` route. It returns the App name, version, environment, and git sha.
Installs: 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
pkg:composer/filld/service-status
Requires
- illuminate/config: ~5.0
This package is auto-updated.
Last update: 2025-10-09 16:18:11 UTC
README
A Simple Lumen Service provider to provide us with a consistent response to the /
route in our APIs.
It returns the App name, the version, the environment, and the git sha.
Installation
composer require filld/service-status
Then, register the Service Provider in the bootstrap/app.php
file:
$app->register(Filld\ServiceStatus\ServiceStatusServiceProvider::class);
Navigate to your service's root route and you should see:
{ "app": "Service Name", "release": "1.0.0", "environment": "production", "commit": "ec75e50" }
Troubleshooting
This requires that you have a registered config file at config/app.php
that has at least the following within it:
return [ 'name' => "Service Name", 'version' => "1.0.0", ];
And, for lumen, you have to load that config in bootstrap/app.php
BEFORE you register your service providers
$app->configure('app');