PHPackages                             jlinn/caseformat - 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. jlinn/caseformat

ActiveLibrary

jlinn/caseformat
================

A PHP case formatting tool inspired by Google Guava's CaseFormat.

1.0.0(12y ago)2241MITPHPPHP &gt;=5.3.2

Since Feb 20Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jlinn/caseformat)[ Packagist](https://packagist.org/packages/jlinn/caseformat)[ RSS](/packages/jlinn-caseformat/feed)WikiDiscussions master Synced 2mo ago

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

caseformat
==========

[](#caseformat)

[![Build Status](https://camo.githubusercontent.com/90ec5d0d2332df647558f8155b6bf82081f3766dda4d5faf1850045cb21c2077/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6c696e6e2f63617365666f726d61742e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/jlinn/caseformat)

A PHP case formatting tool inspired by [Google Guava](https://code.google.com/p/guava-libraries/)'s CaseFormat.

Installation Using [Composer](http://getcomposer.org/)
------------------------------------------------------

[](#installation-using-composer)

Assuming composer.phar is located in your project's root directory, run the following command:

```
php composer.phar require jlinn/caseformat:~1.0
```

Usage
-----

[](#usage)

The following case formats are supported:

FormatExampleLOWER\_HYPHENfoo-barLOWER\_UNDERSCOREfoo\_barLOWER\_CAMELfooBarLOWER\_SPACEfoo barUPPER\_CAMELFooBarUPPER\_UNDERSCOREFOO\_BARUPPER\_SPACEFOO BARConversion from `LOWER_UNDERSCORE` to `UPPER_CAMEL`, for example, is done like so:

```
use CaseFormat\CaseFormat;

$converted = CaseFormat::LOWER_UNDERSCORE("test_string")->to(CaseFormat::UPPER_CAMEL);
```

In the example above, the value of `$converted` would be `"TestString"`.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

4462d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2254b2664ffc343c45b480067d473c9c5912b41452420efe677adc2e75db3621?d=identicon)[jlinn](/maintainers/jlinn)

---

Top Contributors

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

---

Tags

caseformat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jlinn-caseformat/health.svg)

```
[![Health](https://phpackages.com/badges/jlinn-caseformat/health.svg)](https://phpackages.com/packages/jlinn-caseformat)
```

PHPackages © 2026

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