PHPackages                             testo/lifecycle - 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. testo/lifecycle

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

testo/lifecycle
===============

Lifecycle hooks plugin for the Testo testing framework.

0.1.2(4w ago)01.6k↓23.1%1BSD-3-ClausePHPPHP &gt;=8.2

Since May 2Pushed 4w agoCompare

[ Source](https://github.com/php-testo/lifecycle)[ Packagist](https://packagist.org/packages/testo/lifecycle)[ Fund](https://boosty.to/roxblnfk)[ RSS](/packages/testo-lifecycle/feed)WikiDiscussions 1.x Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

 [![TESTO](https://github.com/php-testo/.github/raw/1.x/resources/logo-full.svg?raw=true)](https://github.com/php-testo/testo)

Lifecycle hooks plugin

[![Documentation](https://camo.githubusercontent.com/581efe41679650c23bfc15e13cea47cde8aa70c0d5eb32ae469ed9765028674a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f63756d656e746174696f6e2d626c75653f7374796c653d666f722d7468652d6261646765266c6f676f3d676974626f6f6b266c6f676f436f6c6f723d7768697465)](https://php-testo.github.io)[![Support on Boosty](https://camo.githubusercontent.com/eca37b381ee1cc5abb7bbc819eb3792929666505c31ebc775962992648d00b92/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f7374796c653d666f722d7468652d6261646765266c6162656c3d266d6573736167653d53706f6e736f7273686970266c6f676f3d426f6f737479266c6f676f436f6c6f723d776869746526636f6c6f723d253233463135463243)](https://boosty.to/roxblnfk)

Important

🪞 This is a read-only mirror.
-----------------------------

[](#-this-is-a-read-only-mirror)

Active development of the Testo project lives in [**php-testo/testo**](https://github.com/php-testo/testo) under `plugin/lifecycle/`. This repository is **automatically synchronized** from there on every release.

File issues and pull requests in the [main monorepo](https://github.com/php-testo/testo/issues), not here.

About
-----

[](#about)

Adds setup and teardown hooks around individual tests and entire test classes. Useful for preparing fixtures, opening external resources, and cleaning up state between runs.

Install
-------

[](#install)

```
composer require --dev testo/lifecycle
```

[![PHP](https://camo.githubusercontent.com/4c5f5f4a3c9a6872a86b98349317a80b77431e731f1716330900b01520143648/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746573746f2f6c6966656379636c652e7376673f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://packagist.org/packages/testo/lifecycle)[![Latest Version on Packagist](https://camo.githubusercontent.com/e5bcc1168c29469dde6f8ac73d5944af3636ec30faed83457f3a689de03591f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746573746f2f6c6966656379636c652e7376673f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374)](https://packagist.org/packages/testo/lifecycle)[![License](https://camo.githubusercontent.com/369fda3b481054d469c163855a60e1f948f4ee0204b6dc7d4424720d6a874ff2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746573746f2f6c6966656379636c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-testo/testo/blob/1.x/LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/95964e2f5bf4b890b930238b092707281f6718be7ab3b76e7de33932974b5de6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746573746f2f6c6966656379636c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/testo/lifecycle/stats)

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance94

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

3

Last Release

28d ago

Major Versions

0.1.2 → 1.x-dev2026-05-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/110fa17dca123e71e4ef4132d1d6a66d20058a07fc6118e716dd67dd4316e886?d=identicon)[roxblnfk](/maintainers/roxblnfk)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

lifecycletesto

### Embed Badge

![Health badge](/badges/testo-lifecycle/health.svg)

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

###  Alternatives

[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3309.4M1.2k](/packages/szepeviktor-phpstan-wordpress)[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3524.1M38](/packages/jasonmccreary-laravel-test-assertions)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M67](/packages/orchestra-workbench)[roquie/laravel-dusk-select2

Select2.js support for the Laravel Dusk testing.

41356.2k5](/packages/roquie-laravel-dusk-select2)

PHPackages © 2026

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