PHPackages                             deivide/laravel-support - 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. deivide/laravel-support

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

deivide/laravel-support
=======================

A Laravel Support Package - Maintained fork of pragmarx/support

v0.9.4(4mo ago)01.4k↓81.7%1BSD-3-ClausePHP &gt;=5.4.0

Since Feb 28Compare

[ Source](https://github.com/deivide/laravel-support)[ Packagist](https://packagist.org/packages/deivide/laravel-support)[ RSS](/packages/deivide-laravel-support/feed)WikiDiscussions Synced today

READMEChangelog (4)Dependencies (3)Versions (56)Used By (1)

Laravel Support
===============

[](#laravel-support)

> **This is a maintained fork of [pragmarx/support](https://github.com/antonioribeiro/support)**, originally created by [Antonio Carlos Ribeiro](https://github.com/antonioribeiro). The original package is no longer actively maintained. This fork adds support for Laravel 10 and 11 and will continue to receive updates.
>
> **Now available on Packagist:** [deivide/laravel-support](https://packagist.org/packages/deivide/laravel-support)

[![Latest Stable Version](https://camo.githubusercontent.com/be2e2c130f4486459e23d8014f81c9906d700d79ea5002055843013f2aab4985/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646569766964652f6c61726176656c2d737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deivide/laravel-support) [![License](https://camo.githubusercontent.com/9f4712c4f9d489d358c7bdc2b74330c8d5741c81b99cacd48a1bd1dba3accf07/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d2d332d2d436c617573652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE) [![Downloads](https://camo.githubusercontent.com/549be43e8ff8b8239c0ed5092cdb8664b97030922e9bf516910d438c526ccb96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646569766964652f6c61726176656c2d737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deivide/laravel-support)

Timer
-----

[](#timer)

A timer class that can be called static or dynamically.

Source code: [support/blob/master/src/Timer.php](https://github.com/antonioribeiro/support/blob/master/src/Timer.php)

### Methods

[](#methods)

Those are the methods:

```
Timer::start();
Timer::stop();
Timer::isStarted();
Timer::isStopped();
Timer::elapsed(); // returns a formatted value 9.0192
Timer::elapsedRaw(); // returns a double 9.019223049023
Timer::setFormat(default = '%.4f');

```

You can name your timers and have more than one running:

```
Timer::start('mary');
Timer::stop('mary');
Timer::elapsed('mary');

```

### Examples

[](#examples)

```
Timer::start();
Timer::start('2nd timer');

var_dump("started: " . (Timer::isStarted() ? 'yes' : 'no'));
var_dump("stopped: " . (Timer::isStopped() ? 'yes' : 'no'));

sleep(5);

Timer::stop();

var_dump("started: " . (Timer::isStarted() ? 'yes' : 'no'));
var_dump("stopped: " . (Timer::isStopped() ? 'yes' : 'no'));
var_dump("elapsed: " . Timer::elapsed());
var_dump("raw: " . Timer::elapsedRaw());

sleep(2);

var_dump("'2nd timer' started: " . (Timer::isStarted('2nd timer') ? 'yes' : 'no'));
var_dump("'2nd timer' stopped: " . (Timer::isStopped('2nd timer') ? 'yes' : 'no'));
var_dump("'2nd timer' elapsed: " . Timer::elapsed('2nd timer'));
var_dump("'2nd timer' raw: " . Timer::elapsedRaw('2nd timer'));

sleep(2);

Timer::stop('2nd timer');

var_dump("'2nd timer' started: " . (Timer::isStarted('2nd timer') ? 'yes' : 'no'));
var_dump("'2nd timer' stopped: " . (Timer::isStopped('2nd timer') ? 'yes' : 'no'));
var_dump("'2nd timer' elapsed: " . Timer::elapsed('2nd timer'));
var_dump("'2nd timer' raw: " . Timer::elapsedRaw('2nd timer'));

Timer::setFormat('%.8f');
var_dump("'2nd timer' elapsed 8 decimals: " . Timer::elapsed('2nd timer'));

```

/// And you can instantiate it and do it all over again:

```
$t = new Timer;
$t->start();
sleep(3);
$t->stop();
var_dump("elapsed dynamic: " . $t->elapsed());

```

This should give you this result:

```
string(12) "started: yes"
string(11) "stopped: no"
string(11) "started: no"
string(12) "stopped: yes"
string(15) "elapsed: 5.0004"
string(20) "raw: 5.0005040168762"
string(24) "'2nd timer' started: yes"
string(23) "'2nd timer' stopped: no"
string(27) "'2nd timer' elapsed: 7.0008"
string(32) "'2nd timer' raw: 7.0008120536804"
string(23) "'2nd timer' started: no"
string(24) "'2nd timer' stopped: yes"
string(27) "'2nd timer' elapsed: 9.0011"
string(32) "'2nd timer' raw: 9.0010931491852"
string(42) "'2nd timer' elapsed 8 decimals: 9.00113106"
string(27) "elapsed dynamic: 3.00018883"

```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance74

Regular maintenance activity

Popularity19

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~595 days

Total

55

Last Release

144d ago

PHP version history (2 changes)v0.2.0PHP &gt;=5.3.7

v0.2.3PHP &gt;=5.4.0

### Community

Maintainers

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

---

Tags

laravelpragmarxsupport

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deivide-laravel-support/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.1k](/packages/laravel-framework)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k36.9M382](/packages/yajra-laravel-datatables-oracle)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M142](/packages/roots-acorn)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M286](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k268.2k87](/packages/moonshine-moonshine)[illuminate/session

The Illuminate Session package.

9939.9M880](/packages/illuminate-session)

PHPackages © 2026

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