PHPackages                             svrunit/svrunit - 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. svrunit/svrunit

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

svrunit/svrunit
===============

SVRUnit allows you to configure tests that you can run against your server, Docker container or even plain Docker images.

v1.8.0(3y ago)72.2k↓37.5%2MITPHPPHP &gt;=7.2

Since Oct 15Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (5)Used By (2)

![](https://raw.githubusercontent.com/wiki/svrunit/svrunit/assets/logo.png)

[![Build Status](https://github.com/svrunit/svrunit/actions/workflows/ci_pipe.yml/badge.svg)](https://github.com/svrunit/svrunit/actions/workflows/ci_pipe.yml/badge.svg) [![GitHub release (latest by date)](https://camo.githubusercontent.com/589b659f82230e7480a6b9050465c3895ca999a041a5220aee406a5ee498d6dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f737672756e69742f737672756e6974)](https://camo.githubusercontent.com/589b659f82230e7480a6b9050465c3895ca999a041a5220aee406a5ee498d6dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f737672756e69742f737672756e6974) [![GitHub commits since latest release (by date)](https://camo.githubusercontent.com/c23ec9d1ced54ab520f435499b2599796beed22d500bdc3073da3cedd415c2e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f737672756e69742f737672756e69742f6c6174657374)](https://camo.githubusercontent.com/c23ec9d1ced54ab520f435499b2599796beed22d500bdc3073da3cedd415c2e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f737672756e69742f737672756e69742f6c6174657374) [![Build Status](https://github.com/svrunit/svrunit/actions/workflows/nightly_build.yml/badge.svg)](https://github.com/svrunit/svrunit/actions/workflows/nightly_build.yml/badge.svg)

Welcome to SVRUnit - Your Server Testing Framework!

Basic Concept
-------------

[](#basic-concept)

Sometimes it's hard to verify that your server or even Docker image has all mandatory dependencies and packages installed.

Or maybe you just want to verify that some files exist - or do not exist at all?!

SVRUnit allows you to configure tests that you can run against your server, Docker container or even plain Docker images.

Why not just testing all these different Xdebug versions of your Docker images!?

![](https://raw.githubusercontent.com/wiki/svrunit/svrunit/assets/test-result.png)

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

[](#installation)

SVRUnit is based on PHP. So you need to have PHP installed.

### PHAR File

[](#phar-file)

SVRUnit is available as `phar` file. Just download the ZIP file, extract it and you are ready to go.

```
curl -O https://www.svrunit.com/downloads/svrunit.zip
unzip -o svrunit.zip
rm -f svrunit.zip

```

### Composer

[](#composer)

You can also use SVRUnit with Composer. Just install it with this script.

```
composer require svrunit/svrunit

```

You can then run it with this command

```
php vendor/bin/svrunit ...

```

Configuration
-------------

[](#configuration)

The whole configuration is done using a XML file. You can create different test suites with different settings and even share tests across all of your suites.

Every test suite has the information where it will be run. Either on your local machine, or in a Docker image that will be spawned automatically for you.

Assertions
----------

[](#assertions)

Tests are based on YAML files. You can create 1 single file with all your tests, or different tests based on topics or anything else.

SVRUnit provides different assertion options, such as "File Exists", "File Contains" and way more. Configure it, assign the expected result and you're ready to go.

Start Tests
-----------

[](#start-tests)

Once configured, you can easily start your test with this command:

```
php svrunit.phar test --configuration=./svrunit.xml

```

That's it for now! You can read more about all these different possibilities in your documentation.

Documentation
-------------

[](#documentation)

There's plenty of documentation available at

Please use this as additional resources.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

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

Every ~41 days

Total

4

Last Release

1187d ago

PHP version history (2 changes)v1.5.0PHP &gt;=7.1

v1.6.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d78ee2a88e30693dbe7d0ce975e6aed63d9b0f94246129b29bbdc962c7bb3506?d=identicon)[boxblinkracer](/maintainers/boxblinkracer)

---

Top Contributors

[![boxblinkracer](https://avatars.githubusercontent.com/u/5579326?v=4)](https://github.com/boxblinkracer "boxblinkracer (211 commits)")

---

Tags

devopsdockertestingunittest-frameworktestingserverdockersvrunit

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)

PHPackages © 2026

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