PHPackages                             opencodeco/testcontainers - 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. opencodeco/testcontainers

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

opencodeco/testcontainers
=========================

Testcontainers is a PHP library that supports PHPUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

14184[1 issues](https://github.com/opencodeco/testcontainers-php/issues)PHP

Since Jul 25Pushed 1y ago24 watchersCompare

[ Source](https://github.com/opencodeco/testcontainers-php)[ Packagist](https://packagist.org/packages/opencodeco/testcontainers)[ RSS](/packages/opencodeco-testcontainers/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Note

This project is not officially backed by the Testcontainers project.

Testcontainers
==============

[](#testcontainers)

[![Packagist Version (custom server)](https://camo.githubusercontent.com/cdceef78e298a1fceee75aca4ae08cdad666e7cf13c5c75524f3a6164b2babbc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e636f6465636f2f74657374636f6e7461696e657273)](https://camo.githubusercontent.com/cdceef78e298a1fceee75aca4ae08cdad666e7cf13c5c75524f3a6164b2babbc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e636f6465636f2f74657374636f6e7461696e657273)

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/opencodeco/testcontainers-php)

[![CI](https://github.com/opencodeco/testcontainers-php/actions/workflows/ci.yml/badge.svg)](https://github.com/opencodeco/testcontainers-php/actions/workflows/ci.yml)

> Testcontainers is a PHP library that supports PHPUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

[![Testcontainers logo](docs/logo.png)](docs/logo.png)

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

```
composer require opencodeco/testcontainers
```

[Read the documentation here](https://opencodeco.github.io/testcontainers-php).

License
-------

[](#license)

See [LICENSE](LICENSE).

Copyright
---------

[](#copyright)

Copyright (c) 2023-2024 Leo Cavalcante and other authors.

See [contributors](https://github.com/opencodeco/testcontainers-php/graphs/contributors) for all contributors.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 84.1% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/183722?v=4)[Leo Cavalcante](/maintainers/leocavalcante)[@leocavalcante](https://github.com/leocavalcante)

---

Top Contributors

[![leocavalcante](https://avatars.githubusercontent.com/u/183722?v=4)](https://github.com/leocavalcante "leocavalcante (53 commits)")[![Sunwards](https://avatars.githubusercontent.com/u/5364990?v=4)](https://github.com/Sunwards "Sunwards (4 commits)")[![ciaranmcnulty](https://avatars.githubusercontent.com/u/237866?v=4)](https://github.com/ciaranmcnulty "ciaranmcnulty (3 commits)")[![flavioheleno](https://avatars.githubusercontent.com/u/471860?v=4)](https://github.com/flavioheleno "flavioheleno (3 commits)")

---

Tags

dockerdocker-composehacktoberfestphpphpunittest-automationtestingzendvm

### Embed Badge

![Health badge](/badges/opencodeco-testcontainers/health.svg)

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

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

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M69](/packages/orchestra-workbench)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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