PHP code example of ciatog / inflector

1. Go to this page and download the library: Download ciatog/inflector 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/ */

    

ciatog / inflector example snippets




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");