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 https://getcomposer.org/installer | php php composer.phar require particle/filter
Make sure you include
vendor/autoload.php in your application, and then create your first filter
use Particle\Filter\Filter; $filter = new Filter; // filter rules $filter->all()->trim(); $filter->value('first_name')->upperFirst(); $result = $filter->filter([ // data to filter ]);