PHPackages                             zkrat/while-timer - 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. zkrat/while-timer

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

zkrat/while-timer
=================

Easy tool for loop sleep timer

v0.6(7y ago)067MITPHP

Since Feb 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zkrat/WhileTimer)[ Packagist](https://packagist.org/packages/zkrat/while-timer)[ RSS](/packages/zkrat-while-timer/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (5)Used By (0)

WhileTimer
==========

[](#whiletimer)

Easy tool for sleep timer depends on number of

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

[](#installation)

The recommended way to install is via Composer:

```
composer require zkrat/while-timer

```

It requires PHP version 7.0+

Examples:
---------

[](#examples)

Every 100 milliseconds, maximum 2 seconds:

```
do{
	echo 'Hello Word:  every 100 milliseconds ('.\zkrat\WhileTimer::getCounter().')'.PHP_EOL;
}while(\zkrat\WhileTimer::sleep(2,0.1));
//==========================================
while(\zkrat\WhileTimer::sleep(2,0.1)){
	echo 'Hello Word:  every 100 milliseconds ('.\zkrat\WhileTimer::getCounter().')'.PHP_EOL;
};

```

Example of loop every 1 second, maximum 6 seconds

```
do{
	echo 'Hello Word each 1 second ('.\zkrat\WhileTimer::getCounter().')'.PHP_EOL;
}while(\zkrat\WhileTimer::sleep(6,1));

```

Example of loop every 0.5 second, maximum 3 seconds

```
do{
	echo 'Hello Word each 0.5 seconds ('.\zkrat\WhileTimer::getCounter().')'.PHP_EOL;
}while(\zkrat\WhileTimer::usleep(3000000,500000));

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

Total

4

Last Release

2842d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/074cbeb7fe8afa6aa76b130d24e821b111a0a459772909d407f1466ea12991e8?d=identicon)[zkrat](/maintainers/zkrat)

---

Top Contributors

[![zkrat](https://avatars.githubusercontent.com/u/803769?v=4)](https://github.com/zkrat "zkrat (9 commits)")

### Embed Badge

![Health badge](/badges/zkrat-while-timer/health.svg)

```
[![Health](https://phpackages.com/badges/zkrat-while-timer/health.svg)](https://phpackages.com/packages/zkrat-while-timer)
```

###  Alternatives

[jordanmiguel/laravel-popular

A Laravel package to track popularity of entries(by Models) in a website at a certain time.

659.6k1](/packages/jordanmiguel-laravel-popular)[jaaulde/php-ipv4

PHP classes for working with IPV4 addresses and networks.

1034.6k](/packages/jaaulde-php-ipv4)[ip2location/ip2location-cakephp

Lookup for visitor's IP information, such as country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type.

224.6k](/packages/ip2location-ip2location-cakephp)

PHPackages © 2026

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