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

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

one23/helpers
=============

One23 Helpers for php &amp;&amp; laravel

v0.6.0(3mo ago)0173MITPHPPHP ^8.4|^8.5

Since Jan 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/FlexIDK/helpers)[ Packagist](https://packagist.org/packages/one23/helpers)[ Docs](https://github.com/FlexIDK/helpers)[ RSS](/packages/one23-helpers/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (22)Versions (27)Used By (0)

One23 Helpers
=============

[](#one23-helpers)

Install
-------

[](#install)

```
composer require one23/helpers
```

---

Helpers
-------

[](#helpers)

### Arr

[](#arr)

```
use One23\Helpers\Arr;

Arr::randomValue(['a', 'b', 'c']); // a or b or c
Arr::randomValues(['a', 'b', 'c'], 2); // [a, b] or [b, c] or [c, a]
Arr::randomValues(['a', 'b', 'c'], 3); // shuffle array
```

### Url

[](#url)

```
use One23\Helpers\Url;

$newObj = Url::object('http://aliexpress.ru/fsd')->clone(); // clone

```

### Number

[](#number)

```
use One23\Helpers\Number;

Number::round(1 / 3, 2); // 0.33
```

### Email

[](#email)

```
use One23\Helpers\Email;

Email::val('test@test.com?subject=123'); // test@test.com

Email::isValid('abc@abc'); // false
Email::isValid('abc@def.gh') // true

Email::mask('test@test.com'); // t**t@t**t.c*m
```

### String

[](#string)

```
use One23\Helpers\Str;

Str::hasEntityCharters('abc &a abc'); // false
Str::hasEntityCharters('abc &nbsp; abc'); // true

Str::mask('abc'); // a*b
```

### Random

[](#random)

```
use One23\Helpers\Random;

Random::alpha(10); // abcdefghij (a-z)
Random::alpha(10, null); // aBcDeFgHiJ (a-zA-Z)
Random::alpha(10, true); // ABCDEFGHIJ (A-Z)

Random::base58(6); // 1a2b3c (without 0, O, I, l)

Random::base64(6); // 1a2b3c (a-zA-Z0-9))

Random::byte(6); // 1a2b3c (random bytes)

Random::hex(6); // 1a2b3c (a-f0-9)

Random::digit(6); // 123456 (0-9)

Random::alphaDigital(6); // 1a2b3c (a-z0-9)
Random::alphaDigital(6, null); // 1a2b3c (a-zA-Z0-9)
Random::alphaDigital(6, true); // 1a2b3c (A-Z0-9)

Random::digitalAlpha(6); // alias of alphaDigital

(new Random('charters'))->generate(8); // sretrahc ([charters]+)
```

### Integer

[](#integer)

```
use One23\Helpers\Integer;

Integer::val('123'); // 123
Integer::val('123.45'); // 123
Integer::val('abc'); // null

//

Integer::first(1, 2, 3, 4); // 1
Integer::first('a', 'b', 'c'); // null
Integer::first('a', 'b', 'c', 1); // 1

//

Integer::last(1, 2, 3, 4); // 4
Integer::last('a', 'b', 'c'); // null
Integer::last(1, 'a', 'b', 'c'); // 1

// get (value, default, min, max)

Integer::get(0, null, 1, 5); // null
Integer::get(1, null, 1, 5); // 1
Integer::get(6, null, 1, 5); // null
Integer::get('6', 1, 1, 5); // 1

// getOrNull - alias of `val`

Integer::getOrNull(0); // 0
Integer::getOrNull('abc'); // null

// getOrZero

Integer::getOrZero(0); // 0
Integer::getOrZero('abc'); // 0

// all

Integer::all(1, 2, 3, 4); // [1, 2, 3, 4]
Integer::all(1, 'a', 2, 'b'); // [1, 2]
Integer::all(1, 'a', 2, 'b', 3, 'c'); // [1, 2, 3]

// uniq

Integer::uniq(1, 2, 3, 4); // [1, 2, 3, 4]
Integer::uniq(1, 2, 3, 4, 1, 2, 3, 4); // [1, 2, 3, 4]
Integer::uniq(1, 'a', 2, 'b', 3, 'c'); // [1, 2, 3]

// min

Integer::min(1, 2, 3, 4); // 1
Integer::min(3, 4, 2, 1); // 1
Integer::min(1, 'a', 2, 'b', 3, 'c'); // 1

// max

Integer::max(1, 2, 3, 4); // 4
Integer::max(3, 4, 2, 1); // 4
Integer::max(1, 'a', 2, 'b', 3, 'c'); // 3

// minMax

Integer::minMax(1, 'a', 2, 'b', 3, 'c'); // [1, 3]
```

-

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance80

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~91 days

Total

26

Last Release

103d ago

PHP version history (5 changes)0.2.0PHP ~8.2

v0.3.1PHP ^8.2|^8.3

v0.5.0PHP ^8.2|^8.3|^8.4

v0.5.2PHP ^8.4

v0.6.0PHP ^8.4|^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8653521?v=4)[Eugene](/maintainers/FlexIDK)[@FlexIDK](https://github.com/FlexIDK)

---

Top Contributors

[![FlexIDK](https://avatars.githubusercontent.com/u/8653521?v=4)](https://github.com/FlexIDK "FlexIDK (50 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M307](/packages/laravel-horizon)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M148](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M201](/packages/laravel-ai)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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