PHPackages                             k-kinzal/testcontainers-php - 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. k-kinzal/testcontainers-php

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

k-kinzal/testcontainers-php
===========================

PHP library for Testcontainers

v0.6.1(1mo ago)510.6k↑11.7%1[1 PRs](https://github.com/k-kinzal/testcontainers-php/pulls)4MITPHPPHP ~5.6 || ~7.0 || ~7.1 || ~7.2 || ~7.3 || ~7.4 || ~8.0 || ~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5CI failing

Since Mar 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/k-kinzal/testcontainers-php)[ Packagist](https://packagist.org/packages/k-kinzal/testcontainers-php)[ RSS](/packages/k-kinzal-testcontainers-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (8)Versions (18)Used By (4)

testcontainers-php
==================

[](#testcontainers-php)

[![GitHub Actions](https://github.com/k-kinzal/testcontainers-php/actions/workflows/ci.yaml/badge.svg)](https://github.com/k-kinzal/testcontainers-php/actions)[![CircleCI](https://camo.githubusercontent.com/ac97bbdecdc0ca88b42ee09b55ccba193f10eb40a75d2254896e5d1403585152/68747470733a2f2f636972636c6563692e636f6d2f67682f6b2d6b696e7a616c2f74657374636f6e7461696e6572732d7068702e7376673f7374796c653d736869656c64)](https://circleci.com/gh/k-kinzal/testcontainers-php)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

A PHP implementation of [Testcontainers](https://testcontainers.com/) that supports PHP versions from 5.6 to 8.5, including EOL versions. This library enables you to use Docker containers for your integration tests with minimal dependencies.

If you are using a supported PHP version, consider using the official [testcontainers/testcontainers](https://packagist.org/packages/testcontainers/testcontainers) instead.

Features
--------

[](#features)

- Supports PHP 5.6 to 8.5 (including EOL versions)
- Minimal dependencies for easy integration
- Complete container lifecycle management
- Various configuration options for containers
- Multiple wait strategies to ensure services are ready
- Support for remote Docker hosts and SSH port forwarding

Requirements
------------

[](#requirements)

- Docker command line tool (docker CLI)
- PHP 5.6 or later

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

[](#installation)

```
composer require --dev k-kinzal/testcontainers-php
```

Quick Start
-----------

[](#quick-start)

```
