Programmatically filter and normalize data and files.
The preferred method of installation is via Composer. Run the following command to install the latest version of a package and add it to your project's composer.json
:
composer require leaditin/filter
Camel Case
use \Leaditin\Filter\CamelCase;
$filter = new CamelCase();
echo $filter->filter('my-property');
Humanize
use \Leaditin\Filter\Humanize;
$filter = new Humanize();
echo $filter->filter('my-property');
Plural
use \Leaditin\Filter\Plural;
$filter = new Plural();
echo $filter->filter('property');
Singular
use \Leaditin\Filter\Singular;
$filter = new Singular();
echo $filter->filter('properties');
Underscore
use \Leaditin\Filter\Underscore;
$filter = new Underscore();
echo $filter->filter('my property');
Released under MIT License - see the License File for details.