PHPackages                             cve/naming-convention-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. cve/naming-convention-converter

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

cve/naming-convention-converter
===============================

This little package includes string utils which for example can convert underscore\_string to camelCased and vice-versa

16PHP

Since Jul 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/cve/naming-convention-converter)[ Packagist](https://packagist.org/packages/cve/naming-convention-converter)[ RSS](/packages/cve-naming-convention-converter/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

cve/naming-convention-converter
===============================

[](#cvenaming-convention-converter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/284ea0ee34cfc3ebc01d5d2c766ac1693af05e337aea28d647579a7d723c0d8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6376652f6e616d696e672d636f6e76656e74696f6e2d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cve/naming-convention-converter)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/55774734427071e13440b3de0d5e7414d90add3555b07011bd2a359bc94d5573/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6376652f6e616d696e672d636f6e76656e74696f6e2d636f6e7665727465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cve/naming-convention-converter)[![Total Downloads](https://camo.githubusercontent.com/81e2175a56a4eac299b53fc29ed519bbe1a1e94d0068c19438c5db05eafc6588/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6376652f6e616d696e672d636f6e76656e74696f6e2d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cve/naming-convention-converter)

This library ships with simple naming convention converters.

Install
-------

[](#install)

Via Composer

```
$ composer require cve/naming-convention-converter
```

Usage
-----

[](#usage)

```
use Cve\Naming\Validator\Argument;
use Cve\Naming\Converter\CamelCaseToUnderscore;
use Cve\Naming\Converter\UnderscoreToCamelCase;

$validator = new Argument();

$camelCaseToUnderscoreConverter = new CamelCaseToUnderscore($validator);
$underscoreToCamelCaseConverter = new UnderscoreToCamelCase($validator);

// CamelCase --> camel_case

$underscore =  $camelCaseToUnderscoreConverter->convert('CamelCase');

// underscore_convention --> UderscoreConvention

$camelCase = $underscoreToCamelCaseConverter->convert('underscore_convention');
```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Credits
-------

[](#credits)

- [cve](https://github.com/cve)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/cve-naming-convention-converter/health.svg)

```
[![Health](https://phpackages.com/badges/cve-naming-convention-converter/health.svg)](https://phpackages.com/packages/cve-naming-convention-converter)
```

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k45.9M309](/packages/tightenco-ziggy)[phalapi/wechatmini

PhalApi 2.x 微信小程序扩展

121.1k](/packages/phalapi-wechatmini)

PHPackages © 2026

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