PHPackages                             dhotson/kelpie - 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. dhotson/kelpie

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

dhotson/kelpie
==============

A little web server in PHP.

6185[1 issues](https://github.com/dhotson/kelpie/issues)PHP

Since Jan 24Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/dhotson/kelpie)[ Packagist](https://packagist.org/packages/dhotson/kelpie)[ RSS](/packages/dhotson-kelpie/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Kelpie
======

[](#kelpie)

A little web server in PHP.

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

[](#installation)

You'll need the httpparser extension, it's a PHP extension for the C http parser from the mongrel web server:

```
* http://github.com/dhotson/httpparser-php

```

Kelpie can be installed with composer.

Add this to your composr.json:

```
"dhotson/kelpie": "dev-master"

```

Usage
-----

[](#usage)

A simple web application:

```
class HelloWorldApp
{
  public function __invoke($env)
  {
    return array(
      200,
      array("Content-Type" => "text/plain"),
      array("Hello World")
    );
  }
}

```

The interface is basically the same as Ruby's Rack:

-

To start the server:

```
require_once 'vendor/autoload.php';
$server = new \Kelpie\Server('0.0.0.0', 8000);
$server->start(new HelloWorldApp());

```

Credits
-------

[](#credits)

This little project is inspired by the Thin web server and the Rack web server interface.

A lot of the classes are a direct port of Ruby classes in Thin and Rack. I can't claim much credit in writing them.

Thanks go to the guys who created Thin and Rack:

-
-

The http parser is from Mongrel  by Zed Shaw. Mongrel Web Server (Mongrel) is copyrighted free software by Zed A. Shaw You can redistribute it and/or modify it under either the terms of the GPL.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21532?v=4)[Dennis Hotson](/maintainers/dhotson)[@dhotson](https://github.com/dhotson)

---

Top Contributors

[![bobtfish](https://avatars.githubusercontent.com/u/42338?v=4)](https://github.com/bobtfish "bobtfish (2 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.7k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M87](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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