A simple inflection library for PHP
Install the latest version with composer require ciatog/inflector
<?php
use Ciatog\Inflector;
$inflector = new Inflector();
// Outputs: Testing 123
echo $inflector->humanise("testing-123");
// Outputs: testing_123
echo $inflector->machinise("testing 123");
// Outputs: testing-123
echo $inflector->dasherise("testing 123");
Keith Webster - keith.webster@gmail.com - http://keith-webster.com
PHP Inflector is licensed under the MIT License - see the LICENSE.txt
file for details