Looking to hire Laravel developers? Try LaraJobs

laravel-expose maintained by scollins

Last update
2016/08/23 21:00 (dev-master)
License
Links
Downloads
68

Comments
comments powered by Disqus

Laravel Expose

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).