Download the PHP package chromabits/purifier without Composer
On this page you can find all versions of the php package chromabits/purifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chromabits/purifier
More information about chromabits/purifier
Files in chromabits/purifier
Package purifier
Short Description HTMLPurifier package for Laravel 5
License LGPL
Homepage http://github.com/etcinit/purifier
Informations about the package purifier
Purifier 
A HTMLPurifier service for Laravel 5
Installation
Note: This package is for Laravel 5 only. It does not include a Facade and it requires certain "Contracts" interfaces only available in Laravel 5.
This package can be installed via Composer by
requiring the chromabits/purifier package in your project's composer.json:
Update your packages with composer update or install with composer install.
Usage
To use the HTMLPurifier service, you must register the service provider when bootstrapping your Laravel application.
Find the providers key in config/app.php and register the HTMLPurifier
Service Provider:
After registering the provider, classes requiring the
Chromabits\Purifier\Contracts\Purifier contract will get the purifier service
instance through dependency injection (See below for examples).
Configuration
To use your own settings, copy the config/purifier.php file in this package
into your application's config directory, and modify as needed.
You can define mutiple sets of configurations by sspecifying new entries in the
settings array key:
The service will use the default key as the default set of configuration,
any other configuration will extend this. If a configuraiton file is not
provided, the service will use safe defaults.
Example
Full usage example with default settings within a Laravel 5 controller:
With dynamic configuration:
Interacting with the HTMLPurifier_Config object directly using a custom
service provider and Closure:
License
Based on the Laravel 4 Purifier service
See LICENSE.md for license information