You can install the package via composer:
composer require lenny4/php-swtich-case
$newString = Lenny4\SwtichCase::change('myStringInCamel', Lenny4\SwtichCase::KEBAB_CASE); // my-string-in-camel
Available cases:
Lenny4\SwtichCase::CAMEL_CASE
Lenny4\SwtichCase::SNAKE_CASE
Lenny4\SwtichCase::KEBAB_CASE
Lenny4\SwtichCase::PASCAL_CASE
composer test
Please see CHANGELOG for more information on what has changed recently.
You can launch this command to automatically create test if you create a new Case:
php src/generate-test.php
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.