PHPackages                             mahmud/laravel-utilities - 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. mahmud/laravel-utilities

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

mahmud/laravel-utilities
========================

Bunch of Laravel utilities those are not included to the core of the framework

2.0.0(6y ago)173[4 issues](https://github.com/mahmudkuet11/laravel-utilities/issues)[4 PRs](https://github.com/mahmudkuet11/laravel-utilities/pulls)MITPHP

Since Dec 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mahmudkuet11/laravel-utilities)[ Packagist](https://packagist.org/packages/mahmud/laravel-utilities)[ Docs](https://github.com/mahmudkuet11/laravel-utilities)[ RSS](/packages/mahmud-laravel-utilities/feed)WikiDiscussions 2.x Synced yesterday

READMEChangelog (5)Dependencies (6)Versions (12)Used By (0)

Laravel Utilities
=================

[](#laravel-utilities)

[![Latest Stable Version](https://camo.githubusercontent.com/a076f5afd00b65013e1311d88839533120c6edd4b8a6c6fe319e2e859c76f35e/68747470733a2f2f706f7365722e707567782e6f72672f6d61686d75642f6c61726176656c2d7574696c69746965732f762f737461626c65)](https://packagist.org/packages/mahmud/laravel-utilities)[![License](https://camo.githubusercontent.com/179af97faa657c83c154f15254883ddc7a55dae36f6f721e94d0fde3a167dbfb/68747470733a2f2f706f7365722e707567782e6f72672f6d61686d75642f6c61726176656c2d7574696c69746965732f6c6963656e7365)](https://packagist.org/packages/mahmud/laravel-utilities)[![composer.lock](https://camo.githubusercontent.com/29e5dbbf80c53daa974106e17f5f74325df1911c5305ff192d801a98bb7cbc57/68747470733a2f2f706f7365722e707567782e6f72672f6d61686d75642f6c61726176656c2d7574696c69746965732f636f6d706f7365726c6f636b)](https://packagist.org/packages/mahmud/laravel-utilities)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelLaravel Utilities5.x1.x6.x1.x7.x2.xInstallation
------------

[](#installation)

Via Composer

```
$ composer require mahmud/laravel-utilities ^2.0.0
```

Usage
-----

[](#usage)

### ASCII validation rule

[](#ascii-validation-rule)

```
use Illuminate\Support\Facades\Validator;

$validator = Validator::make(['foo' => 'বার'], ['foo' => new Ascii()]);
$validator->fails() // true
```

### Hash Check validation rule

[](#hash-check-validation-rule)

```
use Illuminate\Support\Facades\Validator;

$hashedPassword = bcrypt('123456');

$validator = Validator::make(['password' => '123456'], ['password' => 'hash_check:' . $hashedPassword]);
$validator->passes() // true
```

### `number` function

[](#number-function)

```
number($number, $decimal = 2)

echo number(7.236)  // 7.24
echo number(3.14159, 4) // 3.1416
echo (3.14159, 0) // 3.0
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

23

↓

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~2 days

Total

7

Last Release

2255d ago

Major Versions

1.x-dev → 2.0.02020-03-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/affa0d5a77f5c7b7a780e9c758269b32aaaa82b39662fcbbe6f89314b64aca9a?d=identicon)[mahmud](/maintainers/mahmud)

---

Top Contributors

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

---

Tags

laravelLaravel Utilities

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mahmud-laravel-utilities/health.svg)

```
[![Health](https://phpackages.com/badges/mahmud-laravel-utilities/health.svg)](https://phpackages.com/packages/mahmud-laravel-utilities)
```

###  Alternatives

[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[tonysm/importmap-laravel

Use ESM with importmap to manage modern JavaScript in Laravel without transpiling or bundling.

148399.8k1](/packages/tonysm-importmap-laravel)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)

PHPackages © 2026

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