PHPackages                             hgh/helpers - 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. hgh/helpers

ActiveLibrary

hgh/helpers
===========

This package contains all helpful methods to help on texts, arrays, objects and number.

v1.1.0(5y ago)1492MITPHP

Since Jul 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/H-Gh/helpers)[ Packagist](https://packagist.org/packages/hgh/helpers)[ RSS](/packages/hgh-helpers/feed)WikiDiscussions develop Synced 1w ago

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

Helpers
=======

[](#helpers)

This package contains all helpful methods to help on texts, arrays, objects and number.

Table of contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Text helper](#text-helper)
    - [Available methods](#text-helper-available-methods)
- [Array helper](#array-helper)
    - [Available methods](#array-helper-available-methods)
- [Object helper](#object-helper)
    - [Available methods](#object-helper-available-methods)

Installation
============

[](#installation)

To install this package, require it via the composer.

```
composer require hgh/helpers

```

Text Helper
===========

[](#text-helper)

The text helper is a helper that changes on texts.

Text Helper available methods
-----------------------------

[](#text-helper-available-methods)

MethodMethod TypeDescriptionSampletoSnakeCasestaticThis method will convert any text to snake case.camelCase to camel\_casesnakeToCamelstaticThis method will convert any text from snake case to camel case.snake\_case to camelCasesnakeToPascalstaticThis method will convert any text from snake case to pascal case.snake\_case to PascalCaseclassNamestaticWill extract the class name from a namespace\\HGh\\Test\\ClassName to ClassNameremovestaticSearch a text in another text and remove it`This is a test`, search for test, result `This is a `removeSpacesstaticRemove spaces from a sting`This is a test`, result `Thisisatest`replacestaticSearch a text in another text and replace it`This is a test`, replace `test` with `text`, result `This is a text`utf8staticConvert a text to utf8-removeNonUtf8staticRemove non UTF8 characters from a string-removeNonAlphanumericstaticRemove all nonAlphanumeric characters from a string`$%asdds565` to `asdds565`lowercasestaticConvert a string to lowe case`AbsasdADK` to `absasdadk`uppercasestaticConvert a string to upper case`AbsasdADK` to `ABSASDADK`pricestaticConvert a number to two decimal after point`2` to `2.00`Array Helper
============

[](#array-helper)

The text helper is a helper that changes on arrays.

Array Helper available methods
------------------------------

[](#array-helper-available-methods)

MethodMethod TypeDescriptionSamplesnakeIndexesstaticMake all indexes of array snake\_case. It can be recursive or not.`["camelCase" => true]` to `["camel_case" => true]`changeIndexstaticChange an index to another one.`["oldIndex" => true]` to `["newIndex" => true]`Object Helper
=============

[](#object-helper)

The text helper is a helper that changes on objects.

Object Helper available methods
-------------------------------

[](#object-helper-available-methods)

MethodMethod TypeDescriptionSamplesnakeKeysstaticMake all keys of object snake\_case. It can be recursive or not.`$stdClass->camelCase = true;` to `$stdClass->camel_case = true`changeKeystaticChange a key to another one.`$stdClass->old_key = true;` to `$stdClass->new_key = true`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~4 days

Total

3

Last Release

2133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7873222f18ced9739dd54f5bcfa13a8d9738496d22b38ff35d9f4b5b84f3269b?d=identicon)[h.gh](/maintainers/h.gh)

### Embed Badge

![Health badge](/badges/hgh-helpers/health.svg)

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

PHPackages © 2026

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