PHPackages                             nnssn/str-rename - 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. nnssn/str-rename

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

nnssn/str-rename
================

Converts the camel case and snake case each other.

0.1.0(9y ago)01.3kMITPHPPHP &gt;=5.4.0

Since Nov 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nnssn/str-rename)[ Packagist](https://packagist.org/packages/nnssn/str-rename)[ Docs](https://github.com/nnssn/str-rename)[ RSS](/packages/nnssn-str-rename/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

nnssn/str-rename
================

[](#nnssnstr-rename)

Converts the camel case and snake case each other.

Requirement
-----------

[](#requirement)

PHP 5.4.0

Install
-------

[](#install)

```
composer require nnssn/str-rename

```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use Nnssn\Str\Rename;

echo Rename::snake('camelCase');         // camel_case
echo Rename::snake('PascalCase');        // pascal_case
echo Rename::snake('twitter-bootstrap'); // twitter_bootstrap

echo Rename::camel('snake_case');        // snakeCase
echo Rename::camel('PascalCase');        // pascalCase
echo Rename::camel('twitter-bootstrap'); // twitterBootstrap

```

Methods
-------

[](#methods)

```
Rename::snake
Rename::constant
Rename::hyphen
Rename::camel
Rename::pascal
Rename::unite
Rename::uniteUp

```

Licence
-------

[](#licence)

[MIT](http://opensource.org/licenses/mit-license.php)

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3523d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9246606?v=4)[nnssn](/maintainers/nnssn)[@nnssn](https://github.com/nnssn)

---

Top Contributors

[![nnssn](https://avatars.githubusercontent.com/u/9246606?v=4)](https://github.com/nnssn "nnssn (2 commits)")

---

Tags

stringunderscorecamelsnakepascal

### Embed Badge

![Health badge](/badges/nnssn-str-rename/health.svg)

```
[![Health](https://phpackages.com/badges/nnssn-str-rename/health.svg)](https://phpackages.com/packages/nnssn-str-rename)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k417.9M1.7k](/packages/nette-utils)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.2M192](/packages/danielstjules-stringy)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4285.3M23](/packages/kwn-number-to-words)[coduo/php-to-string

Simple library that converts PHP value into strings

26913.1M13](/packages/coduo-php-to-string)[opis/string

Multibyte strings as objects

7424.5M8](/packages/opis-string)[voku/stringy

A string manipulation library with multibyte support

1793.9M24](/packages/voku-stringy)

PHPackages © 2026

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