PHP code example of todstoychev / case-convertor

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

    

todstoychev / case-convertor example snippets


    $result = \Todstoychev\CaseConvertor\Convertor::snakeToCamelCase('my_snake_case_string');

    echo $result; // Will produce 'mySnakeCaseString'

    $result = \Todstoychev\CaseConvertor\Convertor::camelToSnakeCase('myCamelCaseString');

    echo $result; // Will produce 'my_camel_case_string'