PHPackages                             ppabcd/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ppabcd/helpers

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

ppabcd/helpers
==============

Helper for project

1.0(8y ago)5810[4 issues](https://github.com/ppabcd/Helpers/issues)MITPHPPHP &gt;=5.6

Since Oct 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ppabcd/Helpers)[ Packagist](https://packagist.org/packages/ppabcd/helpers)[ RSS](/packages/ppabcd-helpers/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Helpers
=======

[](#helpers)

String Helpers
--------------

[](#string-helpers)

### How to use?

[](#how-to-use)

First time you must include src/Str.php in your project for use this helper. Coming soon i will add this project with composer. For Example code you can see in example folder.

### How to use Helpers?

[](#how-to-use-helpers)

there is many types of uses. they are mention below.

#### 1. Strip Quotes

[](#1-strip-quotes)

You can use strip Quotes helper for string or multiple data with array.

```
  $data = 'Test String "';
  Str::strip_quotes($data);
```

#### 2. Strip Slashes

[](#2-strip-slashes)

You can use Strip Slashes helper for string or multiple data with array.

```
  $data = 'Test String \' ';
  Str::strip_slashes($data);
```

#### 3. Random String

[](#3-random-string)

You can use Random String helper for random string in data. Here in list.

1. **alnum** for Alphanumeric
2. **alpha** for Alphabet
3. **numeric** for Numeric
4. **md5** for MD5
5. **hex** for Hex
6. **binary** for Binary text

```
  Str::random(); // Default is alnum
  Str::random(18,'alnum'); //Alnum result
  Str::random(18,'alpha'); //Alpha result
  Str::random(18,'numeric'); //Numeric result
  Str::random(18,'md5'); //MD5 result
  Str::random(18,'hex'); //Hex result
  Str::random(18,'binary'); //Binary result
```

#### 4. Alternator

[](#4-alternator)

You can use Alternator helper for alternating.

```
  for ($i = 0; $i < 10; $i++)
      {
        echo Str::alternator('one', 'two', 'three', 'four', 'five');
      }
```

#### 5. Reverse Case

[](#5-reverse-case)

You can use this helper to reverse the case of each letter in a string.

```
   $data = 'tESt stRinG';
   Str::reverse_case($data);
   // Test String
```

#### 6. Title Case

[](#6-title-case)

You can use Title Case helper for making a string or array of strings title case.

```
    $data = 'test strinG';
    Str::title_case($data);
    // Test String
```

#### 7. Limit

[](#7-limit)

You can use Limit helper to limit a string or array of strings up to specified length.

```
    $data = 'test string';
    Str::limit($data, 4);
    // test
```

#### 8. Contains

[](#8-contains)

You can use Contains helper to check if specific word or key exists in a string.

```
    $data = 'test string';
    Str::contains($data, 'test');
    // true
```

#### 9. Camelize

[](#9-camelize)

You can use Camelize helper to camelize a string.

```
    $data = 'example_test-string';
    Str::camelize($data);
    // ExampleTestString
```

#### 10. Array key starts with

[](#10-array-key-starts-with)

You can use Array key starts with helper to find an array key that starts with a given term

```
    $array = [
      'pizza pie' => 'nomnom',
      'hot dog' => 'ohnomnom'
    ];

    Str::array_key_starts_with($array, 'hot');
    // ['hot dog' => 'ohnomnom']
```

#### 11. Array key ends with

[](#11-array-key-ends-with)

You can use Array key ends with helper to find an array key that ends with a given term

```
    $array = [
      'pizza pie' => 'nomnom',
      'hot dog' => 'ohnomnom'
    ];

    Str::array_key_ends_with($array, 'pie');
    // ['pizza pie' => 'nomnom']
```

#### 12. Arrays are identical

[](#12-arrays-are-identical)

Determine if two arrays are identical with the same index values ignoring key ordering

```
    $array = [
      'foo' => 'bar'
    ];

    Str::arrays_match($array, $array);
    // true
```

#### 13. Snake case

[](#13-snake-case)

Return snake case format of the given string

```
    $string = 'heLLo World ya`ll';

    Str::snake_case($string));
    // hello_world_ya`ll
    # With delimiter
    Str::snake_case($string, '-'));
    // hello-world-ya`ll
```

#### 13. Lower case

[](#13-lower-case)

Return lower case of the given string. Works with UTF-8

```
    $string = 'Hello WorLD';

    Str::lower_case($string));
    // hello world
```

#### 13. Upper case

[](#13-upper-case)

Return upper case of the given string. Works with UTF-8

```
    $string = 'Hello WorLD';

    Str::upper_case($string));
    // HELLO WORLD
```

Contributing
------------

[](#contributing)

See also the list of [contributors](CONTRIBUTING.md) who participated in this project.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance4

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

3125d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a87491c159c106eb7df5bb02a8aa3d4e788443bef9b33f2427e04cee3c0a22c?d=identicon)[ppabcd](/maintainers/ppabcd)

---

Top Contributors

[![ppabcd](https://avatars.githubusercontent.com/u/7419422?v=4)](https://github.com/ppabcd "ppabcd (44 commits)")[![Braunson](https://avatars.githubusercontent.com/u/577273?v=4)](https://github.com/Braunson "Braunson (10 commits)")[![ammarfaizi2](https://avatars.githubusercontent.com/u/26004054?v=4)](https://github.com/ammarfaizi2 "ammarfaizi2 (8 commits)")[![KenoKokoro](https://avatars.githubusercontent.com/u/10259827?v=4)](https://github.com/KenoKokoro "KenoKokoro (2 commits)")[![bethuxs](https://avatars.githubusercontent.com/u/191869?v=4)](https://github.com/bethuxs "bethuxs (2 commits)")[![sajxraj](https://avatars.githubusercontent.com/u/7421712?v=4)](https://github.com/sajxraj "sajxraj (1 commits)")[![spinsch](https://avatars.githubusercontent.com/u/519865?v=4)](https://github.com/spinsch "spinsch (1 commits)")[![thursdaydan](https://avatars.githubusercontent.com/u/8914312?v=4)](https://github.com/thursdaydan "thursdaydan (1 commits)")[![Punit-white](https://avatars.githubusercontent.com/u/44220815?v=4)](https://github.com/Punit-white "Punit-white (1 commits)")[![ianmustafa](https://avatars.githubusercontent.com/u/5209746?v=4)](https://github.com/ianmustafa "ianmustafa (1 commits)")

### Embed Badge

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

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

###  Alternatives

[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[jimbojsb/workman

PHP process forking &amp; daemonizing library

608.8k](/packages/jimbojsb-workman)

PHPackages © 2026

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