PHP code example of monospice / spicy-identifier-tools
1. Go to this page and download the library: Download monospice/spicy-identifier-tools 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/ */
monospice / spicy-identifier-tools example snippets
use Monospice\SpicyIdentifiers\Tools\CaseFormat;
use Monospice\SpicyIdentifiers\Tools\Parser;
use Monospice\SpicyIdentifiers\Tools\Formatter;
use Monospice\SpicyIdentifiers\Tools\Converter;
Parser::parseFromCamelCase('anIdentifier'); // array('an', 'Identifier');
Parser::parseFromUnderscore('an_identifier'); // array('an', 'identifier');
Parser::parseFromHyphen('an-identifier'); // array('an', 'identifier');
// or use the generic method:
Parser::parse('anIdentifier', CaseFormat::CAMEL_CASE);
// array('an', 'Identifier');