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 3d 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 49% 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

2954d 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

[react/stream

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

688126.8M194](/packages/react-stream)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34076.1M136](/packages/react-child-process)[react/zmq

ZeroMQ bindings for React.

2471.7M31](/packages/react-zmq)[mkraemer/react-pcntl

PCNTL bindings for ReactPHP

57289.0k9](/packages/mkraemer-react-pcntl)[wyrihaximus/react-child-process-pool

Pool wyrihaximus/react-child-process-messenger processes

40244.4k5](/packages/wyrihaximus-react-child-process-pool)[wyrihaximus/react-child-process-messenger

Messenger decorator for react/child-process

32279.4k4](/packages/wyrihaximus-react-child-process-messenger)

PHPackages © 2026

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