PHPackages                             ashdevelops/php-case - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ashdevelops/php-case

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ashdevelops/php-case
====================

Composer package to detect case styles from arbitrary strings and convert them to other styles.

v1.0.0(1y ago)422[1 issues](https://github.com/ashdevelops/php-case/issues)PHP

Since Aug 14Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ashdevelops/php-case)[ Packagist](https://packagist.org/packages/ashdevelops/php-case)[ RSS](/packages/ashdevelops-php-case/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Contributors](https://camo.githubusercontent.com/7017fc8976625085a005e5d546973316ae1e02fef4e0f001a4b97608dcf18963/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617368646576656c6f70732f7068702d636173652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ashdevelops/php-case)[![Contributors](https://camo.githubusercontent.com/2ed25f21e833ab7ab958f44576209c6ab115da35710cf4721bf222dda24192bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f617368646576656c6f70732f7068702d636173652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ashdevelops/php-case/graphs/contributors)[![Forks](https://camo.githubusercontent.com/a2ec344e5117a8e984874e55dc0d9698c9f92ad4ceedfdae74b52c601a26632e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f617368646576656c6f70732f7068702d636173652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ashdevelops/php-case/network/members)[![Stargazers](https://camo.githubusercontent.com/638e424dc053b1b6ebc634e8a4b169d9bbf7032d993507938e577784e807a5e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f617368646576656c6f70732f7068702d636173652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ashdevelops/php-case/stargazers)[![Issues](https://camo.githubusercontent.com/d94b9ff616cd6d8732c1283ecab9828300bcddce886b68321e4e6b66a7fe9356/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f617368646576656c6f70732f7068702d636173652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ashdevelops/php-case/issues)[![MIT License](https://camo.githubusercontent.com/b64a989ca718fab0cbb8a63081621813d5ddf0d9c141d5e574231732c49ddd03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f617368646576656c6f70732f7068702d636173652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ashdevelops/php-case/blob/master/LICENSE.txt)

caseconvert
-----------

[](#caseconvert)

A simple library for converting arbitrary case style texts to other cases.

### Supported cases

[](#supported-cases)

- camelCase
- PascalCase
- snake\_case
- kebab-case
- dot.case

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

- PHP &gt;= 8.1.0

### Installation

[](#installation)

Get it via composer:

```
composer require ashdevelops/php-case
```

Usage
-----

[](#usage)

Detect the case:

```
