PHPackages                             chrisharrison/case-converter - 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. chrisharrison/case-converter

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

chrisharrison/case-converter
============================

A factory wrapper around jawira/case-converter

1.0.0(6y ago)07.3kMITPHPPHP ^7.2

Since Aug 5Pushed 6y ago1 watchersCompare

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

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

case-converter
==============

[](#case-converter)

A factory wrapper around [jawira/case-converter](https://github.com/jawira/case-converter)

Injectable
----------

[](#injectable)

This library allows the functionality of the excellent `jawira/case-converter` to be injected as a dependency into other classes.

```
final class SomethingThatNeedsToConvertCase
{
  private $caseConverter;
  private $defaultSuffix;

  public function __construct(CaseConverter $caseConverter, string $defaultSuffix)
  {
    $this->caseConverter = $caseConverter;
    $this->defaultSuffix = $defaultSuffix;
  }

  public function usesTheConverter(string $aStringFromSomethingElse): string
  {
    $this->caseConverter->from($aStringFromSomethingElse)->toCamel() . $this->defaultSuffix;
  }
}

```

Testable/mockable
-----------------

[](#testablemockable)

The library allows the case conversion dependency to be mocked so classes can be more easily tested.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2474d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296186?v=4)[Chris Harrison](/maintainers/chrisharrison)[@chrisharrison](https://github.com/chrisharrison)

---

Top Contributors

[![chrisharrison](https://avatars.githubusercontent.com/u/296186?v=4)](https://github.com/chrisharrison "chrisharrison (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chrisharrison-case-converter/health.svg)

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

###  Alternatives

[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)[datomatic/laravel-enum-helper

Simple opinionated framework agnostic PHP 8.1 enum helper for Laravel

33219.6k6](/packages/datomatic-laravel-enum-helper)[abr4xas/clarity-laravel

Easy integration of Microsoft Clarity into your Laravel application.

5661.8k](/packages/abr4xas-clarity-laravel)[flarum/extension-manager

An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).

12211.5k](/packages/flarum-extension-manager)

PHPackages © 2026

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