library cases
A PHP tool to be able to convert from and to many different programming cases.
jakew/cases
A PHP tool to be able to convert from and to many different programming cases.
- Saturday, January 6, 2018
- by Jakew
- Repository
- 1 Watchers
- 0 Stars
- 32 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 2 Versions
- 0 % Grown
jakew/cases
A PHP tool to be able to convert from and to many different programming cases., (*1)
Example Use
// You can add custom words in, for special cases.
Dictionary::getInstance()->addWord('eMail', 'email');
$phrase = Phrase::decode('ExamplePhrase');
echo $phrase->getSnakeCase();
# example-phrase
$phrase = Phrase::decode('ExamplePhrase');
echo $phrase->getSnakeCase('_');
# example_phrase
$phrase = Phrase::decode('example-phrase');
echo $phrase->getCamelCase();
# ExamplePhrase
$phrase = Phrase::decode('email_phrase');
echo $phrase->getCamelCase(false);
# examplePhrase
$phrase = Phrase::decode('email-address');
echo $phrase->getCamelCase();
# eMailAddress
This allows us to have words that may have medial capitals still be correct when lower and upper cases are used., (*2)
dev-master
9999999-dev
A PHP tool to be able to convert from and to many different programming cases.
Sources
Download
MIT
The Development Requires
v0.0.1
0.0.1.0
A PHP tool to be able to convert from and to many different programming cases.
Sources
Download
MIT
The Development Requires