Looking to hire Laravel developers? Try LaraJobs

laravel-utilities maintained by rokde

Description
Some laravel or php related utilities.
Author
Last update
2026/04/20 09:37 (dev-dependabot/github_actions/dependabot/fetch-metadata-3.1.0)
License
Links
Downloads
74

Comments
comments powered by Disqus

Utilities

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Some laravel or php related utilities.

composer require rokde/laravel-utilities

Stopwatch

A simple stopwatch to measure the time between operations.

use Rokde\LaravelUtilities\Utilities\Stopwatch;

$stopwatch = Stopwatch::make();

echo $stopwatch->measure();
// do a long running task
echo $stopwatch->measure();

// displays
// 00:00:00.034240
// 00:00:03.078050

Memory

Simple memory service to get peak and usage formatted.

echo '[' . Memory::usage() . ' / ' . Memory::peak() . ']';

// displays
// [8.31 MB / 8.96 MB]