Download the PHP package erdemuk/case-converter without Composer
On this page you can find all versions of the php package erdemuk/case-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download erdemuk/case-converter
More information about erdemuk/case-converter
Files in erdemuk/case-converter
Package case-converter
Short Description The StringConverter package provides a convenient way to convert strings or array keys to the desired case format.
License proprietary
Informations about the package case-converter
CaseConverter
CaseConverter is a powerful PHP library that provides a convenient way to convert text between different case formats. It supports popular case formats such as snake_case, kebab-case, camelCase, PascalCase, and space case.
Installation
You can install CaseConverter to your project using Composer:
Usage
In the above example, the convertCase method is used to convert the text hello_world to kebab-case format.
Supported Letter Case Formats
- SnakeCase: Example:
hello_world
- KebabCase: Example:
hello-world
- CamelCase: Example:
helloWorld
- PascalCase: Example:
HelloWorld
- SpaceCase: Example:
Hello World
Text Conversion
CaseConverter can convert a single text or texts within an array. Below are some usage examples:
Converting a Single Text
Converting Texts within an Array
In the above example, the texts within the array are converted to the 'PascalCase' format.
Converting Multidimensional Arrays
CaseConverter can also handle multidimensional arrays. Here's an example:
In the above example, the texts within a multidimensional array are converted to the 'snake_case' format.
Contribution
Contributions to CaseConverter are always welcome! If you find any bugs, issues, or have suggestions for improvement, please feel free to open an issue or submit a pull request on the GitHub repository.