PHPackages                             ixnode/php-naming-conventions - 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. ixnode/php-naming-conventions

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

ixnode/php-naming-conventions
=============================

PHP Naming Conventions

0.1.3(1y ago)17.6k↓26.6%6MITPHPPHP ^8.0

Since Dec 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ixnode/php-naming-conventions)[ Packagist](https://packagist.org/packages/ixnode/php-naming-conventions)[ RSS](/packages/ixnode-php-naming-conventions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (6)

PHP Naming Conventions
======================

[](#php-naming-conventions)

[![Release](https://camo.githubusercontent.com/3143c3220d0690995b59fb66f1148c8c8e553a1b2e1fdafa98675d9a823f65c7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f69786e6f64652f7068702d6e616d696e672d636f6e76656e74696f6e73)](https://github.com/ixnode/php-naming-conventions/releases)[![](https://camo.githubusercontent.com/b368ac3fdaf3ecad0c2d81a844a71751686120d9ae014de64ce2ef3bb995a224/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f69786e6f64652f7068702d6e616d696e672d636f6e76656e74696f6e73)](https://github.com/ixnode/php-naming-conventions/releases)[![](https://camo.githubusercontent.com/2f5f37b745ddda80805663fa659d10abd9cb73e53448c3321819177d634def43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f69786e6f64652f7068702d6e616d696e672d636f6e76656e74696f6e732e737667)](https://camo.githubusercontent.com/2f5f37b745ddda80805663fa659d10abd9cb73e53448c3321819177d634def43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f69786e6f64652f7068702d6e616d696e672d636f6e76656e74696f6e732e737667)[![PHP](https://camo.githubusercontent.com/9ffda6c94e9634fafbd5ff0f68f442ccb690a9b88c8613f79b9c2ec14f5e596b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d3737376262332e7376673f6c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d353535353535267374796c653d666c6174)](https://www.php.net/supported-versions.php)[![PHPStan](https://camo.githubusercontent.com/29fcb055286f72da2b9c961f987152d1ac26a91d6cea221174abe7e01b5b7857/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c2532304d61782d3737376262332e7376673f7374796c653d666c6174)](https://phpstan.org/user-guide/rule-levels)[![PHPUnit](https://camo.githubusercontent.com/de101a446df383674178b80c404288664983cc6de751737d976d3df023942af9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850556e69742d556e697425323054657374732d3662396264322e7376673f7374796c653d666c6174)](https://phpunit.de)[![PHPCS](https://camo.githubusercontent.com/ee1fdc76b568e414c96c160eb608dd4680475a67d714661b70a3b3c43f6ded54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485043532d50535231322d3431366434652e7376673f7374796c653d666c6174)](https://www.php-fig.org/psr/psr-12/)[![PHPMD](https://camo.githubusercontent.com/223a2afede2bd4bf4d524b7610277838a5d75504f7087fc6c36847b81a80ab43/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048504d442d414c4c2d3336346138332e7376673f7374796c653d666c6174)](https://github.com/phpmd/phpmd)[![Rector - Instant Upgrades and Automated Refactoring](https://camo.githubusercontent.com/9c119c037099401c8a61bd1ce556a58158eb09bfe452b2d132b94500e6368714/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f526563746f722d504850253230382e322d3733613136352e7376673f7374796c653d666c6174)](https://github.com/rectorphp/rector)[![LICENSE](https://camo.githubusercontent.com/e5ea4c19422baff789692dd36ee83fc11b6dc67d211dd4a56b4c721e509e8b27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69786e6f64652f7068702d6170692d76657273696f6e2d62756e646c65)](https://github.com/ixnode/php-api-version-bundle/blob/master/LICENSE)

> This library translate a given string or convention into another convention. The following conventions are supported:

ConventionRepresentation`raw`A raw string`words`\['a', 'raw', 'string'\]`title`A Raw String`pascalCase`ARawString`camelCase`aRawString`under_scored`a\_raw\_string`config`a.raw.string`constant`A\_RAW\_STRINGInstallation
------------

[](#installation)

```
composer require ixnode/php-naming-conventions
```

```
vendor/bin/php-naming-conventions -V
```

```
php-naming-conventions 0.1.0 (12-18-2022 01:17:26) - Björn Hempel
```

Usage
-----

[](#usage)

```
use Ixnode\PhpNamingConventions\NamingConventions;
```

```
$rawString = 'Group Private';

print (new NamingConventions($rawString))->getTitle();
// (string) Group Private

print (new NamingConventions($rawString))->getPascalCase();
// (string) GroupPrivate

print (new NamingConventions($rawString))->getCamelCase();
// (string) groupPrivate

print (new NamingConventions($rawString))->getUnderscored();
// (string) group_private

print (new NamingConventions($rawString))->getConstant();
// (string) GROUP_PRIVATE

print (new NamingConventions($rawString))->getConfig();
// (string) group.private

print (new NamingConventions($rawString))->getSeparated();
// (string) group-private

print (new NamingConventions($rawString))->getRaw();
// (string) Group Private

print (new NamingConventions($rawString))->getWords();
// (array) [[0] => group, [1] => private]
```

Development
-----------

[](#development)

```
git clone git@github.com:ixnode/php-naming-conventions.git && cd php-naming-conventions
```

```
composer install
```

```
composer test
```

License
-------

[](#license)

This tool is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity44

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

Every ~192 days

Total

4

Last Release

669d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b92095b1e1e279ccad060449bca0e21bf613b6e33796d878f7bfc212a4680bad?d=identicon)[ixnode](/maintainers/ixnode)

---

Top Contributors

[![bjoern-hempel](https://avatars.githubusercontent.com/u/5531245?v=4)](https://github.com/bjoern-hempel "bjoern-hempel (8 commits)")

---

Tags

namingconventions

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ixnode-php-naming-conventions/health.svg)

```
[![Health](https://phpackages.com/badges/ixnode-php-naming-conventions/health.svg)](https://phpackages.com/packages/ixnode-php-naming-conventions)
```

###  Alternatives

[yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

1186.1M2](/packages/yajra-laravel-datatables-editor)[bocharsky-bw/file-naming-resolver

A lightweight library which helps to resolve a file/directory naming of uploaded files using various naming strategies.

1134.9k](/packages/bocharsky-bw-file-naming-resolver)[dragon-code/laravel-route-names

Automatic generation of route names

259.2k1](/packages/dragon-code-laravel-route-names)[tu6ge/voyager-excel

voyager excel export hook

214.9k](/packages/tu6ge-voyager-excel)

PHPackages © 2026

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