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

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

intellex/naming-convention
==========================

1.1.0(6mo ago)04MITPHPPHP &gt;=8.1

Since Oct 30Pushed 6mo agoCompare

[ Source](https://github.com/IntellexApps/naming-convention)[ Packagist](https://packagist.org/packages/intellex/naming-convention)[ RSS](/packages/intellex-naming-convention/feed)WikiDiscussions master Synced 1mo ago

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

Naming convention
=================

[](#naming-convention)

Small library to detect and convert between naming conventions.

ConventionExamples`NamingConvention::CAMEL_CASE``camel`, `myVarName``NamingConvention::SNAKE_CASE``snake`, `my_var_name``NamingConvention::SCREAMING_SNAKE_CASE``SNAKE`, `MY_VAR_NAME``NamingConvention::PASCAL_CASE``Pascal`, `MyVarName``NamingConvention::KEBAB_CASE``kebab` `my-var-name`Usage
-----

[](#usage)

Via composer: `composer require intellex/naming-convention`

```
use Intellex\NamingConvention\NamingConvention

# Validate
NamingConvention::CAMEL_CASE->validate('myVarName');  // true
NamingConvention::SNAKE_CASE->validate('Snake_Case'); // false

# Detect the convention
$varName =  NamingConvention::determineApplicableConvention('my_var_name');
$varName->convention // NamingConvention::SNAKE_CASE

# Convert
$newName = $varName->convertTo(NamingConvention::PASCAL_CASE);
$newName->name       // "MyVarName"
```

Related projects
----------------

[](#related-projects)

This library is developed for the automated [data parsing library](https://github.com/IntellexApps/data-parser).

License
-------

[](#license)

Licenced under [MIT Licence](LICENSE).

Credits
-------

[](#credits)

Written by the [Intellex team](https://intellex.rs/en).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance66

Regular maintenance activity

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1008e18d1b96b552ce1b76dccf9d1d49d1658835cae153cd53c784a846121d2d?d=identicon)[intellexapps](/maintainers/intellexapps)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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