From 31159258cba3c55fedef6b88f217b8f3ee5ff6eb Mon Sep 17 00:00:00 2001 From: smokills Date: Wed, 30 Sep 2020 18:33:31 +0200 Subject: [PATCH] feat: update documentation --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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.