LaravelPackages.net
Acme Inc.
Toggle sidebar
mahmud/laravel-utilities

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

73
1
2.0.0
About mahmud/laravel-utilities

mahmud/laravel-utilities is a Laravel package for bunch of laravel utilities those are not included to the core of the framework. It currently has 1 GitHub stars and 73 downloads on Packagist (latest version 2.0.0). Install it with composer require mahmud/laravel-utilities. Discover more Laravel packages by mahmud or browse all Laravel packages to compare alternatives.

Last updated

Laravel Utilities

Latest Stable Version License composer.lock

Version Compatibility

| Laravel | Laravel Utilities | |---------|-------------------| | 5.x | 1.x | | 6.x | 1.x | | 7.x | 2.x |

Installation

Via Composer

$ composer require mahmud/laravel-utilities ^2.0.0

Usage

ASCII validation rule

use Illuminate\Support\Facades\Validator;

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

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($number, $decimal = 2)

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

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ vendor/bin/phpunit

Contributing

Please see contributing.md for details and a todolist.

Security

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

License

license. Please see the license file for more information.

Star History Chart