Download the PHP package skyraptor/purifier without Composer
On this page you can find all versions of the php package skyraptor/purifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skyraptor/purifier
More information about skyraptor/purifier
Files in skyraptor/purifier
Package purifier
Short Description Laravel 5/6/7 HtmlPurifier Package
License MIT
Homepage https://github.com/mewebstudio/purifier
Informations about the package purifier
HTMLPurifier for Laravel 5/6/7/8
A simple Laravel 5 & 6 service provider for including the HTMLPurifier for Laravel.
for Laravel 4 HTMLPurifier for Laravel 4
This package can be installed via Composer by
requiring the skyraptor/purifier package in your project's composer.json:
or
Require this package with composer:
Update your packages with composer update or install with composer install.
Usage
To use the HTMLPurifier Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
For Laravel 5.0 to 5.4:
Find the providers key in config/app.php and register the HTMLPurifier Service Provider.
Find the aliases key in config/app.php.
For Laravel 5.5+:
The service provider will be auto-discovered. You do not need to add the provider anywhere.
Configuration
To use your own settings, publish config.
Config file config/purifier.php should like this
Example
default
or
dynamic config
or
use URI filter
for Laravel 4 HTMLPurifier for Laravel 4
All versions of purifier with dependencies
illuminate/config Version ^5.1|^6.0|^7.0|^8.0
illuminate/support Version ^5.1|^6.0|^7.0|^8.0
illuminate/filesystem Version ^5.1|^6.0|^7.0|^8.0
ezyang/htmlpurifier Version 4.13.*