leaditin / filter
Programmatically filter and normalize data and files.
1.0.2
2024-10-05 09:57 UTC
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: 2024-11-05 10:08:32 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.