PHP code example of ashdevelops / php-case

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

    

ashdevelops / php-case example snippets




use CaseConverter\CaseDetector;
use CaseConverter\Validators\PascalCaseValidator;

idator());

echo $detector->detect($arbitraryString)->name; // string(6) "Pascal"

    

    use CaseConverter\CaseType;
    use CaseConverter\Converters\CamelCaseConverter;
    
    eType::Snake); // string(9) "camelCase"