PHPackages                             micropackage/casegnostic - 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. micropackage/casegnostic

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

micropackage/casegnostic
========================

Casegnostic - access properties and methods both snake\_case and camelCase

1.0.0(3y ago)17.3k[1 PRs](https://github.com/micropackage/casegnostic/pulls)GPL-3.0-or-laterPHPPHP &gt;=7.4

Since Nov 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/micropackage/casegnostic)[ Packagist](https://packagist.org/packages/micropackage/casegnostic)[ RSS](/packages/micropackage-casegnostic/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

Casegnostic
===========

[](#casegnostic)

[![BracketSpace Micropackage](https://camo.githubusercontent.com/7a9f5ff780f859fdebce60d4e11572de05f86c42ef96b77967c24d7ea7d1e04b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f427261636b657453706163652d4d6963726f7061636b6167652d627269676874677265656e)](https://bracketspace.com)[![Latest Stable Version](https://camo.githubusercontent.com/348094cb2478d242420481ac022f623cabbba3eb2dab730246115c527fa4c14e/68747470733a2f2f706f7365722e707567782e6f72672f6d6963726f7061636b6167652f63617365676e6f737469632f762f737461626c65)](https://packagist.org/packages/micropackage/casegnostic)[![PHP from Packagist](https://camo.githubusercontent.com/fbfadb10ddca0278808fd79ec7f7c3a2d0c9481e8d96b7faba942355c66993af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6963726f7061636b6167652f63617365676e6f737469632e737667)](https://packagist.org/packages/micropackage/casegnostic)[![Total Downloads](https://camo.githubusercontent.com/3cb55761843d131fa96b3be2f25fda7a31e2ce6e3e66e6fd6dedaf8d547d1c74/68747470733a2f2f706f7365722e707567782e6f72672f6d6963726f7061636b6167652f63617365676e6f737469632f646f776e6c6f616473)](https://packagist.org/packages/micropackage/casegnostic)[![License](https://camo.githubusercontent.com/12c630f5d98cffdfe6c622e406a82752db8f65a3ef0c7e0489a23795b9de3c3f/68747470733a2f2f706f7365722e707567782e6f72672f6d6963726f7061636b6167652f63617365676e6f737469632f6c6963656e7365)](https://packagist.org/packages/micropackage/casegnostic)

 [![Micropackage logo](https://camo.githubusercontent.com/9b9fc4f221b3683db4f9cc63e1ed92220004bbda118206d0a26d5ce6377d4d46/68747470733a2f2f627261636b657473706163652e636f6d2f6578747261732f6d6963726f7061636b6167652f6d6963726f7061636b6167652d736d616c6c2e706e67)](https://camo.githubusercontent.com/9b9fc4f221b3683db4f9cc63e1ed92220004bbda118206d0a26d5ce6377d4d46/68747470733a2f2f627261636b657473706163652e636f6d2f6578747261732f6d6963726f7061636b6167652f6d6963726f7061636b6167652d736d616c6c2e706e67)

🧬 About Casegnostic
-------------------

[](#-about-casegnostic)

Package that simplifies transition from one coding standard to other, namely from snake\_case to camelCase or vice-versa.

When you're about to break compatibility by changing method name from something\_important() to somethingImportant() you can simply attach the trait.

```
use Micropackage\Casegnostic\Casegnostic;

class Example
{
	use Casegnostic;

	public function somethingImportant()
	{
		return true;
	}
}

$x = new Example();

// That works as expected:
$x->somethingImportant();

// But that works too! 🤯
$x->something_important();
```

💾 Installation
--------------

[](#-installation)

```
composer require micropackage/casegnostic
```

🕹 Usage
-------

[](#-usage)

Simply attach the trait to your class.

```
use Micropackage\Casegnostic\Casegnostic;

class Example
{
	use Casegnostic;
}
```

📦 About the Micropackage project
--------------------------------

[](#-about-the-micropackage-project)

Micropackages - as the name suggests - are micro packages with a tiny bit of reusable code, helpful particularly in WordPress development.

The aim is to have multiple packages which can be put together to create something bigger by defining only the structure.

Micropackages are maintained by [BracketSpace](https://bracketspace.com).

📖 Changelog
-----------

[](#-changelog)

[See the changelog file](./CHANGELOG.md).

📃 License
---------

[](#-license)

GNU General Public License (GPL) v3.0. See the [LICENSE](./LICENSE) file for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.1% 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

1314d ago

### Community

Maintainers

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

---

Top Contributors

[![kryswoj](https://avatars.githubusercontent.com/u/70862071?v=4)](https://github.com/kryswoj "kryswoj (27 commits)")[![jakubmikita](https://avatars.githubusercontent.com/u/18362490?v=4)](https://github.com/jakubmikita "jakubmikita (6 commits)")[![BracketSpaceWorker](https://avatars.githubusercontent.com/u/55354984?v=4)](https://github.com/BracketSpaceWorker "BracketSpaceWorker (3 commits)")[![Dartui](https://avatars.githubusercontent.com/u/2657856?v=4)](https://github.com/Dartui "Dartui (2 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/micropackage-casegnostic/health.svg)

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

###  Alternatives

[spatie/laravel-pjax

A pjax middleware for Laravel 5

523386.8k11](/packages/spatie-laravel-pjax)[gkralik/php-uglifyjs

PHP Javascript packer

35304.5k7](/packages/gkralik-php-uglifyjs)[wa72/url

Class for handling and manipulating URLs

31236.7k1](/packages/wa72-url)[claudiodekker/word-generator

Generates random words by combining adjectives and nouns

4162.6k2](/packages/claudiodekker-word-generator)

PHPackages © 2026

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