PHPackages                             polevaultweb/codeception-wait - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. polevaultweb/codeception-wait

ActiveLibrary[Testing &amp; Quality](/categories/testing)

polevaultweb/codeception-wait
=============================

Wait library for modules of Codeception

1.0(7y ago)13.6k2MITPHPPHP &gt;=5.4.0

Since Mar 3Pushed 7y ago3 watchersCompare

[ Source](https://github.com/polevaultweb/codeception-wait)[ Packagist](https://packagist.org/packages/polevaultweb/codeception-wait)[ RSS](/packages/polevaultweb-codeception-wait/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (2)

Codeception Wait
================

[](#codeception-wait)

A utility library, designed to help the user to wait until a condition turns true.

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

[](#installation)

You need to add the repository into your composer.json file

```
    composer require --dev polevaultweb/codeception-wait
```

Usage
-----

[](#usage)

In your custom module add a method:

```
/**
 * @param int $timeout_in_second
 * @param int $interval_in_millisecond
 *
 * @return ModuleWait
 */
protected function wait( $timeout_in_second = 30, $interval_in_millisecond = 250 ) {
    return new ModuleWait( $this, $timeout_in_second, $interval_in_millisecond );
}
```

Then you can create a condition and wait for it to happen, e.g.

```
/**
 * Wait until an email to be received.
 *
 * @param int $timeout
 *
 * @throws \Exception
 */
public function waitForEmail($timeout = 5)
{
    $condition = function () {
        $message = $this->fetchLastMessage();
        return ! empty( $message );
    };

    $message = sprintf('Waited for %d secs but no email has arrived', $timeout);

    $this->wait($timeout)->until($condition, $message);
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2630d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a5332cfc97e7f7a221cddd5feb87a861346acd7670b895b65f59e78b26490c9?d=identicon)[polevaultweb](/maintainers/polevaultweb)

---

Top Contributors

[![polevaultweb](https://avatars.githubusercontent.com/u/1770201?v=4)](https://github.com/polevaultweb "polevaultweb (1 commits)")

---

Tags

codeceptionwait

### Embed Badge

![Health badge](/badges/polevaultweb-codeception-wait/health.svg)

```
[![Health](https://phpackages.com/badges/polevaultweb-codeception-wait/health.svg)](https://phpackages.com/packages/polevaultweb-codeception-wait)
```

###  Alternatives

[lucatume/wp-browser

A set of Codeception modules to test WordPress projects.

6343.8M153](/packages/lucatume-wp-browser)[codeception/module-asserts

Codeception module containing various assertions

8550.6M1.2k](/packages/codeception-module-asserts)[codeception/lib-innerbrowser

Parent library for all Codeception framework modules and PhpBrowser

8641.7M77](/packages/codeception-lib-innerbrowser)[codeception/module-symfony

Codeception module for Symfony framework

949.4M95](/packages/codeception-module-symfony)[codeception/module-webdriver

WebDriver module for Codeception

3831.4M245](/packages/codeception-module-webdriver)[allure-framework/allure-codeception

Allure Codeception integration

5212.1M7](/packages/allure-framework-allure-codeception)

PHPackages © 2026

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