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

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

ketchums/php-case-converter
===========================

v2.0.0(5y ago)15[1 PRs](https://github.com/ketchums/php-case-converter/pulls)MITPHPPHP &gt;=7.4

Since Apr 18Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

About
-----

[](#about)

php-case-converter is a library which converts strings to other case types.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4

Installation
------------

[](#installation)

Installing with composer

```
composer require ketchums/php-case-converter

```

Issues
------

[](#issues)

Bug reports and feature requests can be submitted on the [Github Issue Tracker](https://github.com/ketchums/php-case-converter/issues).

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md) for information.

Versioning
----------

[](#versioning)

php-case-converter uses a `MAJOR.MINOR.PATCH` version number format.

Examples
--------

[](#examples)

Basic

```
use App\CaseDetector;
use App\CaseConverter;

$string = 'some.cool.string';

$detector = new CaseDetector();
$converter = new CaseConverter($string, $detector->detectType($string));

echo $converter->toPascalCase(); // someCoolString
echo $converter->toKebabCase(); // some-cool-string

```

Don't like magic methods?

```
echo $caseConvert->toCase('pascal'); // someCoolString
echo $caseConvert->toCase('kebab'); // some-cool-string

```

Let the package detect the type for you

```
use App\CaseDetector;
use App\CaseConverter;

$converter = new CaseConverter($string);

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

1903d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43356891?v=4)[Ash Ketchum](/maintainers/ketchums)[@ketchums](https://github.com/ketchums)

---

Top Contributors

[![ketchums](https://avatars.githubusercontent.com/u/43356891?v=4)](https://github.com/ketchums "ketchums (32 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[log1x/laravel-webfonts

Download, install, and preload over 1500 Google fonts locally in your Laravel project

142110.1k4](/packages/log1x-laravel-webfonts)[abdelhamiderrahmouni/filament-monaco-editor

A monaco editor form field for filamentphp.

19190.4k](/packages/abdelhamiderrahmouni-filament-monaco-editor)[alleyinteractive/wp-captain-hook

Tools for manipulating private action/filter callbacks in WordPress.

12285.7k](/packages/alleyinteractive-wp-captain-hook)[hypefactors/laravel-follow

Laravel 9 Follow System for Eloquent models.

4918.8k](/packages/hypefactors-laravel-follow)

PHPackages © 2026

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