PHPackages                             mrmanchot/minitimer - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. mrmanchot/minitimer

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

mrmanchot/minitimer
===================

Simplest way to profile execution time in PHP

1.0.3(2y ago)148MITPHPPHP &gt;=5.3.0

Since Feb 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MrManchot/MiniTimer)[ Packagist](https://packagist.org/packages/mrmanchot/minitimer)[ RSS](/packages/mrmanchot-minitimer/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

MiniTimer
=========

[](#minitimer)

MiniTimer is a lightweight PHP library designed to facilitate tracking and displaying the execution time of different parts of your code. It is particularly useful for debugging and performance optimization by measuring the execution time of specific code blocks.

Features
--------

[](#features)

- Measures the execution time of specific tasks within your application.
- Supports task hierarchy for detailed analysis.
- Displays results in an easy-to-read format.
- Implements the Singleton pattern for easy use and global access.

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

[](#installation)

Copy the `MiniTimer.php` file into your project and include it in your PHP scripts where you wish to use MiniTimer.

Usage
-----

[](#usage)

Here's how you can use MiniTimer in your project:

### Starting and Stopping a Timer

[](#starting-and-stopping-a-timer)

To measure the execution time of a part of your code, surround it with the `start` and `stop` methods:

```
require_once 'MiniTimer.php';

// Start the timer
MiniTimer::inst()->start('YourTaskName');

// Your code here

// Stop the timer
MiniTimer::inst()->stop('YourTaskName');
```

### Displaying the Results

[](#displaying-the-results)

To display the results of the measurements:

```
MiniTimer::inst()->display();
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

826d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31999b3179ed3f97c652767c97b1706586dd798caa4d12acd49ce429542df707?d=identicon)[MrManchot](/maintainers/MrManchot)

---

Top Contributors

[![MrManchot](https://avatars.githubusercontent.com/u/2027380?v=4)](https://github.com/MrManchot "MrManchot (17 commits)")

---

Tags

phpprofilerperformancedebuggingprofile

### Embed Badge

![Health badge](/badges/mrmanchot-minitimer/health.svg)

```
[![Health](https://phpackages.com/badges/mrmanchot-minitimer/health.svg)](https://phpackages.com/packages/mrmanchot-minitimer)
```

###  Alternatives

[noisebynorthwest/php-spx

A simple &amp; straight-to-the-point PHP profiling extension with its built-in web UI

2.6k1.3k](/packages/noisebynorthwest-php-spx)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235344.1k](/packages/laracraft-tech-laravel-xhprof)[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

191.1M3](/packages/jbzoo-jbdump)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22157.3k](/packages/bavix-laravel-xhprof)[koriym/xdebug-mcp

Universal PHP Xdebug MCP Server with AI-optimized debugging support

5221.3k1](/packages/koriym-xdebug-mcp)

PHPackages © 2026

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