{"id":19808813,"url":"https://github.com/k-kinzal/testcontainers-php","last_synced_at":"2026-01-12T13:00:07.341Z","repository":{"id":260740615,"uuid":"882214653","full_name":"k-kinzal/testcontainers-php","owner":"k-kinzal","description":"Test container implementation for legacy PHP","archived":false,"fork":false,"pushed_at":"2026-01-10T04:17:11.000Z","size":552,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T01:19:57.936Z","etag":null,"topics":["php","testcontainers"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k-kinzal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-02T07:36:33.000Z","updated_at":"2026-01-10T04:16:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"40a85d98-4a14-48eb-80d1-fcd2fbbf3db4","html_url":"https://github.com/k-kinzal/testcontainers-php","commit_stats":null,"previous_names":["k-kinzal/testcontainers-php"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/k-kinzal/testcontainers-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Ftestcontainers-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Ftestcontainers-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Ftestcontainers-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Ftestcontainers-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-kinzal","download_url":"https://codeload.github.com/k-kinzal/testcontainers-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-kinzal%2Ftestcontainers-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","testcontainers"],"created_at":"2024-11-12T09:14:51.244Z","updated_at":"2026-01-12T13:00:07.319Z","avatar_url":"https://github.com/k-kinzal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testcontainers-php\n\n[![GitHub Actions](https://github.com/k-kinzal/testcontainers-php/actions/workflows/ci.yaml/badge.svg)](https://github.com/k-kinzal/testcontainers-php/actions)\n[![CircleCI](https://circleci.com/gh/k-kinzal/testcontainers-php.svg?style=shield)](https://circleci.com/gh/k-kinzal/testcontainers-php)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA 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.\n\nIf you are using a supported PHP version, consider using the official [testcontainers/testcontainers](https://packagist.org/packages/testcontainers/testcontainers) instead.\n\n## Features\n\n- Supports PHP 5.6 to 8.5 (including EOL versions)\n- Minimal dependencies for easy integration\n- Complete container lifecycle management\n- Various configuration options for containers\n- Multiple wait strategies to ensure services are ready\n- Support for remote Docker hosts and SSH port forwarding\n\n## Requirements\n\n- Docker command line tool (docker CLI)\n- PHP 5.6 or later\n\n## Installation\n\n```bash\ncomposer require --dev k-kinzal/testcontainers-php\n```\n\n## Quick Start\n\n```php\n\u003c?php\n\nuse PHPUnit\\Framework\\TestCase;\nuse Testcontainers\\Containers\\GenericContainer\\GenericContainer;\nuse Testcontainers\\Testcontainers;\n\nclass MyContainer extends GenericContainer\n{\n    protected static $IMAGE = 'alpine:latest';\n}\n\nclass MyTest extends TestCase\n{\n    public function test(): void\n    {\n        // Start the container and get the container instance\n        $instance = Testcontainers::run(MyContainer::class);\n        \n        // Your test code here\n        \n        // Containers are automatically stopped when the test ends\n    }\n}\n```\n\n## Documentation\n\nFor more detailed information, check out the documentation:\n\n- [Getting Started](docs/getting-started.md): A comprehensive guide to installing and using testcontainers-php\n- [Container Configuration](docs/container-configuration.md): Learn how to configure containers with various settings\n- [Environments](docs/environments.md): Understand how to configure testcontainers-php using environment variables\n- [CI Setup](docs/ci-setup.md): Guide for setting up testcontainers-php in CI environments (GitHub Actions, CircleCI)\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgements\n\n- [Testcontainers](https://testcontainers.com/) for the original concept and implementation in other languages\n- All contributors who have helped improve this project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-kinzal%2Ftestcontainers-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-kinzal%2Ftestcontainers-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-kinzal%2Ftestcontainers-php/lists"}