PHPackages                             php-eight-four/string-utils - 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. php-eight-four/string-utils

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

php-eight-four/string-utils
===========================

String utilities for PHP 8.4

v1.1.0(1y ago)00MITPHPCI failing

Since May 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/eri-bga/php-eight-four-string-utils)[ Packagist](https://packagist.org/packages/php-eight-four/string-utils)[ RSS](/packages/php-eight-four-string-utils/feed)WikiDiscussions main Synced 1mo ago

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

📦 String Utils for PHP 8.4
==========================

[](#-string-utils-for-php-84)

A lightweight utility library to help with common string manipulations in PHP 8.4.

🧩 Features
----------

[](#-features)

This package provides easy-to-use static methods for transforming and analyzing strings, including:

- Convert strings to:
    - `camelCase`
    - `PascalCase`
    - `snake_case`
    - `kebab-case`
- Check if a string is a palindrome

---

🛠️ Installation
---------------

[](#️-installation)

You can install this package via Composer:

```
composer require php-eight-four/string-utils
```

---

🧪 Usage Examples
----------------

[](#-usage-examples)

### Import the class:

[](#import-the-class)

```
use PhpEightFour\StringUtils\StringUtils;
```

### Convert to camelCase

[](#convert-to-camelcase)

```
echo StringUtils::toCamelCase("hello world"); // Outputs: helloWorld
```

### Convert to PascalCase

[](#convert-to-pascalcase)

```
echo StringUtils::toPascalCase("hello world"); // Outputs: HelloWorld
```

### Convert to snake\_case

[](#convert-to-snake_case)

```
echo StringUtils::toSnakeCase("HelloWorld"); // Outputs: hello_world
```

### Convert to kebab-case

[](#convert-to-kebab-case)

```
echo StringUtils::toKebabCase("HelloWorld"); // Outputs: hello-world
```

### Check if a string is a palindrome

[](#check-if-a-string-is-a-palindrome)

```
var_dump(StringUtils::isPalindrome("RaceCar")); // Outputs: true
var_dump(StringUtils::isPalindrome("Hello"));   // Outputs: false
```

---

📁 Namespace Structure
---------------------

[](#-namespace-structure)

All classes are under the namespace:

```
\PhpEightFour\StringUtils\
```

---

📚 Requirements
--------------

[](#-requirements)

- PHP 8.4 or higher
- Composer (for installation)

---

🧑‍💻 Contributing
----------------

[](#‍-contributing)

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

1. Fork the repo
2. Create your feature branch (`git checkout -b feature/new-feature`)
3. Commit your changes (`git commit -am 'Add new feature'`)
4. Push to the branch (`git push origin feature/new-feature`)
5. Submit a pull request

---

📄 License
---------

[](#-license)

MIT License – see the [LICENSE](LICENSE) file for details.

---

📬 Contact
---------

[](#-contact)

If you have any questions or suggestions, feel free to reach out at:

- GitHub:

---

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance49

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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

Every ~0 days

Total

2

Last Release

371d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/242cdd506766562ecb5260c29800f8783aad865177e0c43d088b207bb8290f1f?d=identicon)[eri-bga](/maintainers/eri-bga)

---

Top Contributors

[![eri-bga](https://avatars.githubusercontent.com/u/22773296?v=4)](https://github.com/eri-bga "eri-bga (11 commits)")

---

Tags

phpstringutilities

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-eight-four-string-utils/health.svg)

```
[![Health](https://phpackages.com/badges/php-eight-four-string-utils/health.svg)](https://phpackages.com/packages/php-eight-four-string-utils)
```

###  Alternatives

[coduo/php-to-string

Simple library that converts PHP value into strings

27112.7M10](/packages/coduo-php-to-string)[clausnz/php-helpers

A Collection of useful php helper functions.

388.7k](/packages/clausnz-php-helpers)

PHPackages © 2026

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