Skip to content

Convert any string to snake_case or kebab-case or PascalCase or camelCase.

License

Notifications You must be signed in to change notification settings

ssfyn/string-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String Case

Convert any string to snake_case or kebab-case or PascalCase or camelCase.

Example

use Fyn\Common\StringCase;

echo StringCase::snakeCase("This_is A-test@text"),"\n";  //this_is_a_test_text

echo StringCase::kebabCase("This_is A-test@text"),"\n";  //this-is-a-test-text

echo StringCase::pascalCase("This_is A-test@text"),"\n"; //ThisIsATestText

echo StringCase::camelCase("This_is A-test@text"),"\n";  //thisIsATestText

About

Convert any string to snake_case or kebab-case or PascalCase or camelCase.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages