Download the PHP package aporat/laravel-filter-var without Composer
On this page you can find all versions of the php package aporat/laravel-filter-var. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aporat/laravel-filter-var
More information about aporat/laravel-filter-var
Files in aporat/laravel-filter-var
Package laravel-filter-var
Short Description Laravel package for filtering and sanitizing request variables
License MIT
Homepage https://github.com/aporat/laravel-filter-var
Informations about the package laravel-filter-var
Laravel Filter Var
Laravel package for filtering and sanitizing request variables
Installation
The filter-var service provider can be installed via Composer.
To use the FilterVar service provider, you must register the provider when bootstrapping your application.
Laravel
Laravel 5.5 and above
The package will automatically register provider and facade.
Laravel 5.4 and below
Add Aporat\FilterVar\Laravell\FilterVarServiceProvider
to the providers
section of your config/app.php
:
Add FilterVar facade to the aliases
section of your config/app.php
:
Or use the facade class directly:
Now run php artisan vendor:publish
to publish config/filter-var.php
file in your config directory.
Lumen
Register the Aporat\FilterVar\Laravel\FilterVarServiceProvider
in your bootstrap/app.php
:
Copy the filter-var.php
config file in to your project:
Configuration
In the config file you can set custom filters
Usage
Filter and escape user agent header:
Credits
- Adar Porat
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-filter-var with dependencies
illuminate/support Version ~7.0
illuminate/validation Version ~7.0
nesbot/carbon Version ~1.0|~2.0
ext-json Version *