scollins/laravel-expose

1.0.1 2016-08-23 19:00 UTC

This package is not auto-updated.

Last update: 2024-05-08 23:18:29 UTC


README

License Latest Stable Version Total Downloads

This package allows you to use Expose in Laravel with support for caching ad queuing.

Install

First grab a copy with composer

$ composer require scollins/laravel-expose

You can also manually add it to your composer.json and run composer update

{
    "require": {
        "scollins/laravel-expose": "^1.0"
    }
}

Add the service provider to your config\app.php file

  • SCollins\LaravelExpose\ExposeServiceProvider::class

Add the facade

  • 'Expose' => SCollins\LaravelExpose\Facades\Expose::class

Add the Middleware to your kernel.php

  • \SCollins\LaravelExpose\Middleware\Expose::class

It should now run on any requests with input and add the Job to your queue. While your queue is running it will analyse the requests and log any high values.

It uses the Cache to store the requests which could contain sensitive information, use the ignore config option to exclude this.

Todo

  • Improve formatting of violations

License

Laravel Expose is licensed under The MIT License (MIT).