fuzz / felk-php
Installs: 3 106
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 23
Forks: 0
Open Issues: 1
Requires
- php: >=7.1
- elasticsearch/elasticsearch: ~5.0
- jsq/amazon-es-php: ^0.2.0
- laravel/framework: ^5.1.0
- nesbot/carbon: ~1.18
Requires (Dev)
This package is not auto-updated.
Last update: 2024-04-14 22:11:26 UTC
README
FELK is a helper library which can take data from a Laravel request/response and push it to a store (currently ElasticSearch, hence Fuzz ELK). It is intended to only be used in development environments to debug and run analytics on API requests/responses.
Installation
$ composer require fuzz/felk-php
Configuration
- Add the service provider to
config/app.php
'providers' => [ ... /* * Application Service Providers... */ \Fuzz\Felk\Providers\FelkServiceProvider::class, ... ],
- Publish the vendor config
$ php artisan vendor:publish --provider="Fuzz\Felk\Providers\FelkServiceProvider"
- Configure the configuration variables in
config/felk.php
- Add the Felk middleware to the middleware stack in
app/Http/Kernel.php
/** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware = [ ... \Fuzz\Felk\Middleware\FelkMiddleware::class, ... ];
- Check ElasticSearch.