Download the PHP package jawira/case-converter without Composer
On this page you can find all versions of the php package jawira/case-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jawira/case-converter
More information about jawira/case-converter
Files in jawira/case-converter
Package case-converter
Short Description Convert strings between 13 naming conventions: Snake case, Camel case, Pascal case, Kebab case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Sentence case, Title case and Dot notation.
License MIT
Homepage https://jawira.github.io/case-converter/
Informations about the package case-converter
Case converter
Use this library to convert strings between the following cases:
| Name | Method | Output example |
|---|---|---|
| 🐪 Camel case | toCamel() |
myNameIsBond |
| 👨🏫 Pascal case | toPascal() |
MyNameIsBond |
| 🐍 Snake case | toSnake() |
my_name_is_bond |
| 👩🏫 Ada case | toAda() |
My_Name_Is_Bond |
| Ⓜ️ Macro case | toMacro() |
MY_NAME_IS_BOND |
| 🥙 Kebab case | toKebab() |
my-name-is-bond |
| 🚂 Train case | toTrain() |
My-Name-Is-Bond |
| 🏦 Cobol case | toCobol() |
MY-NAME-IS-BOND |
| 🔡 Lower case | toLower() |
my name is bond |
| 🔠 Upper case | toUpper() |
MY NAME IS BOND |
| 📰 Title case | toTitle() |
My Name Is Bond |
| ✍️ Sentence case | toSentence() |
My name is bond |
| ⚙️ Dot notation | toDot() |
my.name.is.bond |
Features:
- 🔁 automatic case detection
- 🏭 factory
- 🌐 i18n
Usage
The input string's format is detected automatically.
For example:
You can also specify the input string's format explicitly:
You can also use the provided factory to create a Convert instance.
See the list of all public methods for more options.
i18n
The library supports non-English alphabets:
case-converter supports both Simple Case-Mapping and Full Case-Mapping.
Learn more about Case-Mapping.
Installation
Documentation
https://jawira.github.io/case-converter/
Contributing
License
This library is licensed under the MIT LICENSE.
Packages from jawira
-
jawira/emoji-catalog
- Get access to +3000 emojis as class constants.
-
jawira/plantuml-client
- Convert PlantUML diagrams into images (svg, png, ...).
-
jawira/doctrine-diagram-bundle
- Symfony Bundle to generate database diagrams.
- more...
All versions of case-converter with dependencies
ext-mbstring Version *