Installing Particle\Filter is very easy, if you're using composer. If you haven't done so, install composer, and use composer require to install Particle\Filter.

curl -sS | php
php composer.phar require particle/filter

First usage

Make sure you include vendor/autoload.php in your application, and then create your first filter instance:

use Particle\Filter\Filter;

$filter = new Filter;

// filter rules

$result = $filter->filter([
    // data to filter