diff --git a/README.md b/README.md index 63c2ceb..c1b25e2 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ This package is a wrapper bridging [jimdo/prometheus_client_php](https://github. composer require superbalist/laravel-prometheus-exporter ``` +## Laravel + Register the service provider in app.php ```php 'providers' => [ @@ -33,6 +35,19 @@ Register the facade in app.php ] ``` +## Lumen +Register the service provider in boostrap/app.php +```php +$app->register(Superbalist\LaravelPrometheusExporter\PrometheusServiceProvider::class); +``` + +If you want to register the facade, in boostrap/app, replece the line with `$app->withFacades();` with the following: +```php +$app->withFacades(true, [ + Superbalist\LaravelPrometheusExporter\PrometheusFacade::class => 'Prometheus', +]); +``` + ## Configuration The package has a default configuration which uses the following environment variables.