PHPackages                             421p/stimer - 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. 421p/stimer

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

421p/stimer
===========

React-Eventloop compatible pausable timer.

0.2(8y ago)2354MITPHPPHP &gt;=7

Since Jul 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/421p/stimer)[ Packagist](https://packagist.org/packages/421p/stimer)[ RSS](/packages/421p-stimer/feed)WikiDiscussions master Synced 2w ago

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

Stimer, a timer with pause/resume feature.
------------------------------------------

[](#stimer-a-timer-with-pauseresume-feature)

And immediately proceed to the samples:

Regular timer:

```
$loop = Factory::create();
$interval = 5;

$timer = new Timer($loop, $interval, function () { echo 'hello world'; });

// ... 3 seconds

$timer->pause();
$timer->getLeftInterval(); // ~ 2 seconds

// ... something happens

$timer->resume();

// ... 2 seconds

// hello world
```

Periodic timer:

```
$loop = Factory::create();
$interval = 5;

$timer = new PeriodicTimer($loop, $interval, function () { echo 'hello world'; });

// ... 3 seconds

$timer->pause();
$timer->getLeftInterval(); // ~ 2 seconds

// ... something happens

$timer->resume();

// ... 2 seconds

// hello world

// ... 5 seconds

// hello world
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

3002d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50d19b2d385f4cb6392e3f25263c4ffff41cd400224c404b84131d2e5f022820?d=identicon)[421p](/maintainers/421p)

---

Top Contributors

[![haswelldev](https://avatars.githubusercontent.com/u/1667946?v=4)](https://github.com/haswelldev "haswelldev (10 commits)")

---

Tags

asyncevent-looppausereactphpresumestatetimer

### Embed Badge

![Health badge](/badges/421p-stimer/health.svg)

```
[![Health](https://phpackages.com/badges/421p-stimer/health.svg)](https://phpackages.com/packages/421p-stimer)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.5k](/packages/friendsofphp-php-cs-fixer)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[react/stream

Event-driven readable and writable streams for non-blocking I/O in ReactPHP

691146.0M209](/packages/react-stream)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34691.0M156](/packages/react-child-process)[spatie/laravel-short-schedule

Schedule artisan commands to run using a sub-minute frequency

6541.2M1](/packages/spatie-laravel-short-schedule)[react/zmq

ZeroMQ bindings for React.

2471.7M33](/packages/react-zmq)

PHPackages © 2026

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