1. Go to this page and download the library: Download ptrkcsk/change-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/ */
ptrkcsk / change-case example snippets
use ChangeCase\ChangeCase;
ChangeCase::camel('test string'); // 'testString'
ChangeCase::lowerCamel('test string'); // 'testString'
use ChangeCase\ChangeCase;
ChangeCase::constant('test string'); // 'TEST_STRING'
ChangeCase::screamingSnake('test string'); // 'TEST_STRING'
use ChangeCase\ChangeCase;
ChangeCase::dot('test string'); // 'test.case'
use ChangeCase\ChangeCase;
ChangeCase::header('test string'); // 'Test-String'
use ChangeCase\ChangeCase;
ChangeCase::lower('test string'); // 'test string'
use ChangeCase\ChangeCase;
ChangeCase::lowerFirst('TEST STRING'); // 'tEST STRING'
use ChangeCase\ChangeCase;
ChangeCase::no('test string'); // 'test string'