PHPackages                             salernolabs/camelize - 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. salernolabs/camelize

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

salernolabs/camelize
====================

Utility for camel and uncamel casing words or phrases.

v1.0.0(6y ago)359.8k—6.5%MITPHPPHP &gt;=7.2

Since Apr 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/salernolabs/camelize)[ Packagist](https://packagist.org/packages/salernolabs/camelize)[ Docs](http://www.salernolabs.com/)[ RSS](/packages/salernolabs-camelize/feed)WikiDiscussions master Synced 1mo ago

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

salernolabs/camelize
====================

[](#salernolabscamelize)

[![Latest Stable Version](https://camo.githubusercontent.com/4a6c5a57ca6617d6c39d082c66e7c296c2ffb1d8678c8deb8e902964894d5701/68747470733a2f2f706f7365722e707567782e6f72672f73616c65726e6f6c6162732f63616d656c697a652f762f737461626c65)](https://packagist.org/packages/salernolabs/camelize)[![License](https://camo.githubusercontent.com/347faeeb72f018b3eda20c912cb35ff5745cccf3df25539129e9e01732999d87/68747470733a2f2f706f7365722e707567782e6f72672f73616c65726e6f6c6162732f63616d656c697a652f6c6963656e7365)](https://packagist.org/packages/salernolabs/camelize)[![Build Status](https://camo.githubusercontent.com/88aca0eb40b23a95a1da3499a82cec544ac07b4ea03b965f79511679a3837ce2/68747470733a2f2f7472617669732d63692e636f6d2f73616c65726e6f6c6162732f63616d656c697a652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/salernolabs/camelize)

Simple library to perform camel and uncamel casing of words or phrases. The library is designed to by multibyte character safe. PHPUnit tests are included.

Not sure just how useful this is as a library but I've used it for some code modification processes in the past.

Usage
-----

[](#usage)

First include the library with composer.

```
composer require salernolabs/camelize

```

### Camel Casing

[](#camel-casing)

The camel casing utility assumes your input string is hungarian notation, or something similar. To camel case something, try this:

```
$camelizer = new \SalernoLabs\Camelize\Camel();

$output = $camelizer->camelize('some_text_in_some_notation');

echo $output;

```

This should output "SomeTextInSomeNotation". You can also do:

```
//Defaults to true
$camelizer->setShouldCapitalizeFirstCharacter(false);

```

And the resulting output would be "someTextInSomeNotation".

### Uncamel Casing

[](#uncamel-casing)

The uncamel casing utility assumes your input string is already in Camel Case notation. To uncamelize something, try this:

```
$uncamelizer = new \SalernoLabs\Camelize\Uncamel();

$output = $uncamelizer->uncamelize('SomeTextInCamelCase');

echo $output;

```

This should output "some\_text\_in\_camel\_case" (snake case). You can also do:

```
//Defaults to false
$uncamelizer->setShouldCapitalizeFirstCharacter(true);

```

And the resulting output would be "Some\_Text\_In\_Camel\_Case".

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~210 days

Total

5

Last Release

2480d ago

Major Versions

0.1.3 → v1.0.02019-08-03

PHP version history (3 changes)0.1.0PHP &gt;=7.0

0.1.2PHP &gt;=5.4

v1.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/155974?v=4)[Eric Salerno](/maintainers/ericsalerno)[@ericsalerno](https://github.com/ericsalerno)

---

Top Contributors

[![ericsalerno](https://avatars.githubusercontent.com/u/155974?v=4)](https://github.com/ericsalerno "ericsalerno (3 commits)")

---

Tags

camelcasecamelizephpuncamelcasephpcamel case

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/salernolabs-camelize/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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