PHPackages                             vntrungld/laravel-ticktock - 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. vntrungld/laravel-ticktock

ActiveLibrary

vntrungld/laravel-ticktock
==========================

Laravel TickTock

v1.0.2(1y ago)319MITPHPPHP ~7.2|~8.0

Since Dec 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vntrungld/laravel-ticktock)[ Packagist](https://packagist.org/packages/vntrungld/laravel-ticktock)[ RSS](/packages/vntrungld-laravel-ticktock/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Laravel Ticktock
================

[](#laravel-ticktock)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4d75928f856eaa27e1a3814c36897e8af5bf7314f85c6a0275bad57f1ccbb3a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766e7472756e676c642f6c61726176656c2d7469636b746f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vntrungld/laravel-ticktock)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8bc5d2c8f908ebf399074299e1e946614451af0fa0859ad48ca9cfbc53ccf6b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f766e7472756e676c642f6c61726176656c2d7469636b746f636b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/vntrungld/laravel-ticktock/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1e8a7dfa3966fc5c1ea7167cf14b9ddf44da18f73da272c483e7e5242157b301/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f766e7472756e676c642f6c61726176656c2d7469636b746f636b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/vntrungld/laravel-ticktock/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4a24249b061a5bf70a53ab70ccc3ac86acf0f015abacfd7ac65e1acabedbac25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766e7472756e676c642f6c61726176656c2d7469636b746f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vntrungld/laravel-ticktock)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require vntrungld/laravel-ticktock
```

Usage
-----

[](#usage)

Use `tts` to start a timer for a block of code

Use `tte` to end a timer for a block of code

Use `tt` to capture the time of a block of code

Eg:

```
tts('test 1')
    doSomething();tt('do something');
    doSomethingElse();tt('do something else');
tte()
```

Or you can use facade `Ticktock` to measure the time of your code.

```
Ticktock::start('test 1')
    doSomething(); Ticktock::capture('do something');
    doSomethingElse(); Ticktock::capture('do something else');
Ticktock::end()
```

After that you can dump, dd or log this by using:

```
ttd(); // dump
ttdd(); // dd
ttl(); // log
ttr(); // string

Ticktock::dump(); // dump
Ticktock::dd(); // dd
Ticktock::log(); // log
Ticktock::render(); // string
```

The output will be

```
test 1 -- 30ms
├── do something -- 10ms
└── do something else -- 20ms

```

You can nest many levels as you want.

```
tts('total');
    usleep(10 * 1000);tt('child1');
    usleep(20 * 1000);tt('child2');
    tts('child3');
        usleep(5 * 1000);tt('child3.1');
        usleep(7*1000);tt('child3.2');
        tts('child3.3');
            usleep(3 * 1000);tt('child3.3.1');
            usleep(4 * 1000);tt('child3.3.2');
        tte();
        usleep(18 * 1000);tt('child3.4');
        tts('child3.5');
            usleep(8 * 1000);tt('child3.5.1');
            usleep(9 * 1000);tt('child3.5.2');
        tte();
    tte();
    tts('child4');
        usleep(10 * 1000);tt('child4.1');
        usleep(15 * 1000);tt('child4.2');
        usleep(20 * 1000);tt('child4.3');
    tte();
tte();
ttl();
```

The output will be

```
total -- 132ms
├── child1 -- 10ms
├── child2 -- 20ms
├── child3 -- 56ms
│   ├── child3.1 -- 5ms
│   ├── child3.2 -- 7ms
│   ├── child3.3 -- 8ms
│   │   ├── child3.3.1 -- 3ms
│   │   └── child3.3.2 -- 4ms
│   ├── child3.4 -- 18ms
│   └── child3.5 -- 18ms
│       ├── child3.5.1 -- 8ms
│       └── child3.5.2 -- 9ms
└── child4 -- 46ms
    ├── child4.1 -- 10ms
    ├── child4.2 -- 15ms
    └── child4.3 -- 20ms

```

Testing
-------

[](#testing)

I have not written any tests yet. I will write them soon.

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Lam Duc Trung](https://github.com/vntrungld)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance48

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

4

Last Release

379d ago

Major Versions

v0.0.1 → v1.0.02024-08-09

PHP version history (2 changes)v0.0.1PHP ^7.2|^8.0

v1.0.2PHP ~7.2|~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/39490e25f48deaf067db160681117abc2bdcf818fdce03a30eebc1ee25b784a0?d=identicon)[vntrungld](/maintainers/vntrungld)

---

Top Contributors

[![vntrungld](https://avatars.githubusercontent.com/u/19848743?v=4)](https://github.com/vntrungld "vntrungld (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vntrungld-laravel-ticktock/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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