Skip to content

MightySCollins/Laravel-Expose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Package that Wraps PHP Expose for use in Laravel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages