PHPackages                             weew/echo-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. weew/echo-server

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

weew/echo-server
================

A very simple echo server.

v1.2.1(9y ago)013MITPHP

Since Aug 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/weew/echo-server)[ Packagist](https://packagist.org/packages/weew/echo-server)[ RSS](/packages/weew-echo-server/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (0)

Echo Server
===========

[](#echo-server)

[![Build Status](https://camo.githubusercontent.com/d32ec07d336acc051f9663b2967f6059b347c49cfa95a8fd79cfbf06052857d6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776565772f6563686f2d7365727665722e737667)](https://travis-ci.org/weew/echo-server)[![Code Quality](https://camo.githubusercontent.com/3480213c0f2fd4e87ad4e7ee04e567aec11ecbd1af652647f172851a052ac596/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776565772f6563686f2d7365727665722e737667)](https://scrutinizer-ci.com/g/weew/echo-server)[![Test Coverage](https://camo.githubusercontent.com/f7c0159e9357c4d15f2a504f7c3346138d719d1bf034b4cdfdd5f1bf7ab6373e/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f776565772f6563686f2d7365727665722e737667)](https://coveralls.io/github/weew/echo-server)[![Dependencies](https://camo.githubusercontent.com/e7ed82215f74145dba4c0b92cc7e7a6047d3644a53542856d01ffd4404d69670/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f776565773a6563686f2d7365727665722e737667)](https://versioneye.com/php/weew:echo-server)[![Version](https://camo.githubusercontent.com/908c71a56d43f4f44a1ca65e09c0a2d9cbe9c0dd31210b1ecaae9436724d34e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776565772f6563686f2d7365727665722e737667)](https://packagist.org/packages/weew/echo-server)[![Licence](https://camo.githubusercontent.com/e18f349f8de6b49a75496089469fac90735ee6801a65f9f75c49fe01c801bbb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776565772f6563686f2d7365727665722e737667)](https://packagist.org/packages/weew/echo-server)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Introduction](#introduction)
- [Example](#example)

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

[](#installation)

`composer require weew/echo-server`

Introduction
------------

[](#introduction)

The echo server will always return a serialized version of the incoming request. It is meant to be used as an endpoint for your API tests.

Example
-------

[](#example)

You can see it in action at

```
{
    "protocol": "HTTP",
    "version": "1.1",
    "method": "GET",
    "url": {
        "protocol": "http",
        "tld": "io",
        "domain": "maxim",
        "subdomain": "echo",
        "host": "echo.maxim.io",
        "port": null,
        "path": "/foo",
        "query": {
            "bar": "baz"
        },
        "username": null,
        "password": null,
        "fragment": null,
        "full": "http://echo.maxim.io/foo?bar=baz"
    },
    "headers": {
        "host": ["echo.maxim.io"],
        "connection": ["keep-alive"],
        "accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"],
        "upgrade-insecure-requests": ["1"],
        "user-agent": ["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36"],
        "accept-encoding": ["gzip, deflate, sdch"],
        "accept-language": ["en-US,en;q=0.8,de;q=0.6,fr;q=0.4,ru;q=0.2,uk;q=0.2,nb;q=0.2"],
        "content-type": [""],
        "content-length": [""]
    },
    "data": [],
    "query": {
        "bar": "baz"
    },
    "cookies": [],
    "content": ""
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity67

Established project with proven stability

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 ~82 days

Total

5

Last Release

3579d ago

Major Versions

v0.0.1 → v1.0.02015-11-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b2b854b5829dd13a15967c000ed2119b5faef67aca24d94c653c8ac550d85e?d=identicon)[weew](/maintainers/weew)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weew-echo-server/health.svg)

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

PHPackages © 2026

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