PHP code example of leaditin / filter

1. Go to this page and download the library: Download leaditin/filter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

leaditin / filter example snippets


use \Leaditin\Filter\CamelCase;

$filter = new CamelCase();
echo $filter->filter('my-property');

use \Leaditin\Filter\Humanize;

$filter = new Humanize();
echo $filter->filter('my-property');

use \Leaditin\Filter\Plural;

$filter = new Plural();
echo $filter->filter('property');

use \Leaditin\Filter\Singular;

$filter = new Singular();
echo $filter->filter('properties');

use \Leaditin\Filter\Underscore;

$filter = new Underscore();
echo $filter->filter('my property');