PHPackages                             todstoychev/case-convertor - 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. todstoychev/case-convertor

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

todstoychev/case-convertor
==========================

Camel to snake case and snake to camel case convertor

1.0.0(10y ago)037MITPHPPHP &gt;=5.3

Since Dec 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/todstoychev/case-convertor)[ Packagist](https://packagist.org/packages/todstoychev/case-convertor)[ Docs](https://github.com/todstoychev/case-convertor)[ RSS](/packages/todstoychev-case-convertor/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

This a simple camel to snake case and snake to camel case string convertor.

Instalation
===========

[](#instalation)

Use the common composer methods. The composer 'require command':

`composer require todstoychev/case-convertor`

or add to ypur composer.json in the 'require' section:

```
"require": {
    "todstoychev/case-convertor": "dev-master"
}
```

and then run:

`composer update`

Usage
=====

[](#usage)

The module contains only one class with 2 static methods. To convert from snake to camel case use:

```
    $result = \Todstoychev\CaseConvertor\Convertor::snakeToCamelCase('my_snake_case_string');

    echo $result; // Will produce 'mySnakeCaseString'
```

For camel to snake case you can use:

```
    $result = \Todstoychev\CaseConvertor\Convertor::camelToSnakeCase('myCamelCaseString');

    echo $result; // Will produce 'my_camel_case_string'
```

Keep in mind that numbers are not affected by the convertion. For more information take a look at the unit tests in the 'tests' folder.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

3

Last Release

3846d ago

Major Versions

0.1.1 → 1.0.02015-12-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4d5af278828b70e08928a5c1a6b33975cb9709ef0829d4822b5b083887a410f?d=identicon)[todstoychev](/maintainers/todstoychev)

---

Top Contributors

[![todstoychev](https://avatars.githubusercontent.com/u/4498971?v=4)](https://github.com/todstoychev "todstoychev (15 commits)")

---

Tags

casecamelsnakeconvertor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/todstoychev-case-convertor/health.svg)

```
[![Health](https://phpackages.com/badges/todstoychev-case-convertor/health.svg)](https://phpackages.com/packages/todstoychev-case-convertor)
```

###  Alternatives

[kirkbushell/eloquence

A set of extensions adding additional functionality and consistency to Laravel's awesome Eloquent library.

5741.0M1](/packages/kirkbushell-eloquence)[mattketmo/camel

Tiny library to handle words case transformation

29373.8k17](/packages/mattketmo-camel)[meng-tian/php-soap-interpreter

A PHP library for interpreting SOAP messages.

212.7M3](/packages/meng-tian-php-soap-interpreter)[ph-7/html-to-text

Lightweight package to convert HTML code to plain text (handy for plain text email format).

128.8k5](/packages/ph-7-html-to-text)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
