PHP code example of hametuha / string-utility
1. Go to this page and download the library: Download hametuha/string-utility 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/ */
hametuha / string-utility example snippets
MyClass {
use Hametuha\StringUtility\NamingConventions;
}
$my_instance = new MyClass();
echo $my_instance->camel_to_kebab( 'MyClassName' );
// -> 'my-class-name'