leaditin / filter
Programmatically filter and normalize data and files.
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/leaditin/filter
Requires
- php: ^7.1 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^5.7 || ^6.0
This package is auto-updated.
Last update: 2025-10-05 12:22:33 UTC
README
Programmatically filter and normalize data and files.
Installation
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
Usage
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');
Credits
License
Released under MIT License - see the License File for details.