PHPackages                             malenki/tictactic - 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. malenki/tictactic

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

malenki/tictactic
=================

1.2.0(12y ago)118MITPHPPHP &gt;=5.3.0

Since May 2Pushed 12y ago2 watchersCompare

[ Source](https://github.com/malenkiki/tictactic)[ Packagist](https://packagist.org/packages/malenki/tictactic)[ RSS](/packages/malenki-tictactic/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

tictactic
=========

[](#tictactic)

A simple timer for multiple things at once…

Quick example of use:

```
$t = \Malenki\TicTacTic::getInstance();

$t->start('foo');
sleep(4);
$t->finish('foo');

echo "\n";
echo $t->get('foo');
echo "\n";
```

Full example (avaible into source files too):

```
include('src/Malenki/TicTacTic.php');

$t = \Malenki\TicTacTic::getInstance();

$t->start('foo');
echo "\n";
echo $t->done('foo') ? 'FOO done' : 'FOO is running';
echo "\n";
sleep(3);

$t->finish('foo');
//$t->finish('thing'); // if uncommented, should throw exception

echo "\n";
echo $t->done('foo') ? 'FOO done' : 'FOO is running';
echo "\n";

$t->start('bar');

sleep(2);

$t->finish('bar');

$t->start('something');

sleep(1);

$t->finish('something');

echo "\n";
printf('%d timers:', count($t));
echo "\n";
echo $t->get('foo');
echo "\n";
echo $t->get('bar');
echo "\n";
echo $t->get('something');
echo "\n";
printf('Averages:', count($t));
echo "\n";
echo $t->average();
echo "\n";
echo $t->average(array('foo', 'something')); // for two of them only
echo "\n";
echo "\n";
```

And *voilà*! Do you need a full doc for that? ;-)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

4587d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6af62130bd16d4e6bbaa5877829b6377386ef9fb6593592052dbb6eeb87c4a02?d=identicon)[malenki](/maintainers/malenki)

---

Top Contributors

[![malenkiki](https://avatars.githubusercontent.com/u/195776?v=4)](https://github.com/malenkiki "malenkiki (16 commits)")

### Embed Badge

![Health badge](/badges/malenki-tictactic/health.svg)

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

###  Alternatives

[modmore/alpacka

Generic MODX service class and collection of utilities, used by the modmore team, but also available for third party developers.

156.6k](/packages/modmore-alpacka)

PHPackages © 2026

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