PHP code example of adamlc / lettercase

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

    

adamlc / lettercase example snippets



$letterCase = new Adamlc\LetterCase\LetterCase();

$snake_case = $letterCase->snake("PascalCase"); // => pascal_case
$camelCase = $letterCase->camel("PascalCase"); // => pascalCase
$PascalCase = $letterCase->pascal("PascalCase"); // => PascalCase
$path_form = $letterCase->path("PascalCase"); // => Pascal/Case