PHPackages                             phpexperts/php-test-server - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. phpexperts/php-test-server

ActiveLibrary[HTTP &amp; Networking](/categories/http)

phpexperts/php-test-server
==========================

A quick and easy standard PHP HTTP REST API Test Server.

v1.0.0(1y ago)13CC-BY-4.0PHPPHP &gt;=7.4

Since Sep 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PHPExpertsInc/php-test-server)[ Packagist](https://packagist.org/packages/phpexperts/php-test-server)[ Docs](https://www.phpexperts.pro/)[ RSS](/packages/phpexperts-php-test-server/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

PHP API Test Server
===================

[](#php-api-test-server)

PHP API Test Server is a PHP Experts, Inc., Project meant to ease the testing of HTTP clients and REST clients.

It is more or less an echo server. It supports all major HTTP verbs:

GET, POST, PUT, PATCH, and DELETE

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

[](#installation)

Via Composer

```
composer require --dev phpexperts/php-test-server
```

Usage
-----

[](#usage)

The default port the server listens to is 127.0.0.5:49519.

To run standalone:

```
bin/php-test-server [PORT]

```

To run in a PHP script:

```
TestApiRestServer::runForked(45192);
TestApiRestServer::shutdown();

```

To run as part of PHPUnit:

```
class MyApiTest extends TestApiServerTestCase
{
}

```

Use cases
---------

[](#use-cases)

Api Rest Server Binary (PHPExperts\\PHPTestServer\\Tests\\ApiRestServerBinary)
✔ Can launch the standalone test server
✔ It is an HTTP server
✔ Can shut down the test server

Api Rest Server (PHPExperts\\PHPTestServer\\Tests\\ApiRestServer)
✔ Can launch the test server
✔ It is an HTTP server
✔ It supports the GET, POST, PUT, PATCH, and DELETE HTTP verbs
✔ Can shut down the HTTP server

Api Server Test Case (PHPExperts\\PHPTestServer\\Tests\\ApiServerTestCase)
✔ Accepts GET requests
✔ Accepts POST requests
✔ Accepts PUT requests
✔ Accepts PATCH requests
✔ Accepts DELETE requests

Testing
-------

[](#testing)

```
phpunit --testdox
```

License
=======

[](#license)

This project is licensed under the [Creative Commons Attribution License v4.0 International](LICENSE.md).

[![CC.by License Summary](https://user-images.githubusercontent.com/1125541/93617603-cd6de580-f99b-11ea-9da4-f79c168c97df.png)](https://user-images.githubusercontent.com/1125541/93617603-cd6de580-f99b-11ea-9da4-f79c168c97df.png)

About The Author
================

[](#about-the-author)

[Theodore R. Smith](https://www.phpexperts.pro/%5D)
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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

Unknown

Total

1

Last Release

610d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f3a2dd16766f6b03c330e65aaca9dfb97f1bbbb41c5e2af5681f58f670b7917?d=identicon)[hopeseekr](/maintainers/hopeseekr)

---

Top Contributors

[![hopeseekr](https://avatars.githubusercontent.com/u/1125541?v=4)](https://github.com/hopeseekr "hopeseekr (1 commits)")

---

Tags

httpapirestfultest server

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpexperts-php-test-server/health.svg)

```
[![Health](https://phpackages.com/badges/phpexperts-php-test-server/health.svg)](https://phpackages.com/packages/phpexperts-php-test-server)
```

###  Alternatives

[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[voku/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

16183.9k1](/packages/voku-httpful)[wellrested/wellrested

Simple PHP Library for RESTful APIs

4818.7k4](/packages/wellrested-wellrested)[msankhala/parsehub-php

Php wrapper classes for Parsehub REST api.

1312.4k](/packages/msankhala-parsehub-php)

PHPackages © 2026

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