PHPackages                             raving-dev/case-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. raving-dev/case-converter

ActiveLibrary

raving-dev/case-converter
=========================

v1.0(2mo ago)112MITPHP

Since Dec 24Pushed 2mo agoCompare

[ Source](https://github.com/raving-dev/case-converter)[ Packagist](https://packagist.org/packages/raving-dev/case-converter)[ RSS](/packages/raving-dev-case-converter/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Strings case converter for PHP
==============================

[](#strings-case-converter-for-php)

Simplest way to convert strings to various cases:

- camelCase
- PascalCase
- snake\_case
- SCREAMING\_SNAKE\_CASE (a.k.a. CONSTANT\_CASE)
- Camel\_Snake\_Case
- kebab-case
- COBOL-CASE
- Train-Case
- flatcase
- UPPERFLATCASE

1. Installation
---------------

[](#1-installation)

```
composer require raving-dev/case-converter
```

2. Usage
--------

[](#2-usage)

```
use RavingDev\CaseConverter\CaseConverter;
use RavingDev\CaseConverter\CaseEnum;

$string = ' Strings case converter for PHP';

CaseConverter::toCamelCase($string);
// stringsCaseConverterForPhp

CaseConverter::toPascalCase($string);
// StringsCaseConverterForPhp

CaseConverter::toSnakeCase($string);
// strings_case_converter_for_php

CaseConverter::toScreamingSnakeCase($string); // or
CaseConverter::toConstantCase($string);
// STRINGS_CASE_CONVERTER_FOR_PHP

CaseConverter::toCamelSnakeCase($string);
// Strings_Case_Converter_For_Php

CaseConverter::toKebabCase($string);
// strings-case-converter-for-php

CaseConverter::toCobolCase($string);
// STRINGS-CASE-CONVERTER-FOR-PHP

CaseConverter::toTrainCase($string);
// Strings-Case-Converter-For-Php

CaseConverter::toFlatCase($string);
// stringscaseconverterforphp

CaseConverter::toUpperFlatCase($string);
// STRINGSCASECONVERTERFORPHP

// Use can use this method to change case dynamically
CaseConverter::toCase(CaseEnum::KEBAB, $string);
// strings-case-converter-for-php
// Equals to CaseConverter::toKebabCase($string)
```

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance83

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

88d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10206f77ccff237e4f6173d09004c86e5c8276845c023dde6b5c34797f79d203?d=identicon)[alexeyyashin](/maintainers/alexeyyashin)

---

Top Contributors

[![alexeyyashin](https://avatars.githubusercontent.com/u/47781271?v=4)](https://github.com/alexeyyashin "alexeyyashin (5 commits)")

### Embed Badge

![Health badge](/badges/raving-dev-case-converter/health.svg)

```
[![Health](https://phpackages.com/badges/raving-dev-case-converter/health.svg)](https://phpackages.com/packages/raving-dev-case-converter)
```

PHPackages © 2026

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