PHPackages                             nabil1337/case-helper - 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. nabil1337/case-helper

Abandoned → [marcusball/case-helper](/?search=marcusball%2Fcase-helper)Library[Utility &amp; Helpers](/categories/utility)

nabil1337/case-helper
=====================

Easily convert between camelCase, PascalCase, kebab-case, snake\_case, SCREAMING\_SNAKE\_CASE, Train-Case, and string case!

0.1.0(11y ago)21622.0k↓21.9%113MITPHP

Since Dec 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nabil1337/case-helper)[ Packagist](https://packagist.org/packages/nabil1337/case-helper)[ RSS](/packages/nabil1337-case-helper/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (13)

CaseHelper
==========

[](#casehelper)

Easily convert between camelCase, PascalCase, kebab-case, snake\_case, SCREAMING\_SNAKE\_CASE, Train-Case, and string case!

Note about fork
===============

[](#note-about-fork)

The original package, `nabil1337/case-helper`, has been abandoned and this repo has taken over ownership.

How to use
==========

[](#how-to-use)

```
use CaseHelper\CaseHelperFactory;

$ch = CaseHelperFactory::make(CaseHelperFactory::INPUT_TYPE_CAMEL_CASE);

$ch->toPascalCase('myStr');

// => returns 'MyStr'

```

You need to specify which type your input has when calling the factories' make()-method. To do that, use one of the following constants:

- CaseHelperFactory::INPUT\_TYPE\_SPACE\_CASE for `space case`
- CaseHelperFactory::INPUT\_TYPE\_CAMEL\_CASE for `camelCase`
- CaseHelperFactory::INPUT\_TYPE\_PASCAL\_CASE for `PascalCase`
- CaseHelperFactory::INPUT\_TYPE\_KEBAB\_CASE for `kebab-case`
- CaseHelperFactory::INPUT\_TYPE\_SNAKE\_CASE for `snake_case`
- CaseHelperFactory::INPUT\_TYPE\_SCREAMING\_SNAKE\_CASE for `SCREAMING_SNAKE_CASE`
- CaseHelperFactory::INPUT\_TYPE\_TRAIN\_CASE for `Train-Case`

Twig
----

[](#twig)

Want to use it with Twig? Check out [this](https://github.com/ninsuo/symfony-quickstart/blob/master/src/BaseBundle/Twig/Extension/CaseExtension.php) great example.

Tests
=====

[](#tests)

This project was mainly (although not completely) written using TDD. Tests can be run using phpunit.

Contributing
============

[](#contributing)

If you want to contribute, please follow the used standards and add or extend tests.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.9% 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

Unknown

Total

1

Last Release

4228d ago

### Community

Maintainers

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

---

Top Contributors

[![marcusball](https://avatars.githubusercontent.com/u/1077559?v=4)](https://github.com/marcusball "marcusball (9 commits)")[![nabil1337](https://avatars.githubusercontent.com/u/5262393?v=4)](https://github.com/nabil1337 "nabil1337 (7 commits)")[![ninsuo](https://avatars.githubusercontent.com/u/4152132?v=4)](https://github.com/ninsuo "ninsuo (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nabil1337-case-helper/health.svg)

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

PHPackages © 2026

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