zintel / laravel-helpers
This package will help you
1.0.1
2025-01-08 11:40 UTC
Requires
- php: ^7.1|^8.2
README
Install
composer require zintel/laravel-helpers
Change config file
<?php // config/app.php 'aliases' => Facade::defaultAliases()->merge([ 'Zintel' => Zintel\LaravelHelpers\Facades\ZintelFacade::class, ])->toArray(),
ZintelString Class
$str = 'HELLO WORLD!'; $result = ZintelString::toLowerCase($str); // hello world! $str = 'Laravel' $result = ZintelString::reverse($str); // "levaraL"
ZintelDate Class
$date = '2025-01-01'; $result = ZintelDate::dayOfWeek($date); // 'Thursday' $date = '2024-12-12'; $result = ZintelDate::monthName($date); // "December"
ZintelArray Class
$array1 = ['name' => 'Nuriddin', 'age' => 23]; $result = ZintelArray::isAssociative($array1); // true $array2 = [1, 2, 3]; $result = ZintelArray::isAssociative($array2); // false