PHPackages                             meekframework/http - 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. meekframework/http

Abandoned → [meraki/http](/?search=meraki%2Fhttp)Library[HTTP &amp; Networking](/categories/http)

meekframework/http
==================

v0.3.0(8y ago)051MITPHPPHP ^7.1

Since Oct 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/meekframework/http)[ Packagist](https://packagist.org/packages/meekframework/http)[ RSS](/packages/meekframework-http/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

MeekFramework Http Component
============================

[](#meekframework-http-component)

[![Scrutinizer Build Status](https://camo.githubusercontent.com/44f36f847dd6df6c0bfcd269bc42b4bcaf5baa07256f469e63475845c3bf7656/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65656b6672616d65776f726b2f687474702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meekframework/http/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4220bf0b36f0e0da02ca5adfdf875c843e37c446cc0373c05527e703ee602bf6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65656b6672616d65776f726b2f687474702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meekframework/http/?branch=master)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/3b5a0b9336ee7220d99bd35cbd1e2cce8012dd6f512d5d6523d7b460107fda20/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65656b6672616d65776f726b2f687474702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meekframework/http/?branch=master)[![Packagist Latest Stable Version](https://camo.githubusercontent.com/536cb4378bc054e89ef5553c53a23991a8a2fa2a824ade361a7243d23383b874/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65656b6672616d65776f726b2f687474702e737667)](https://packagist.org/packages/meekframework/http)[![MIT License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/meekframework/http/master/LICENSE.md)

A [PSR7](http://www.php-fig.org/psr/psr-7/) compliant library for handling HTTP requests, responses, middleware and errors.

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

[](#installation)

With [Composer](https://getcomposer.org/):

```
composer require meekframework/route
```

Usage
-----

[](#usage)

Here is an example integrating [Diactoros](https://github.com/zendframework/zend-diactoros) and [FastRoute](https://github.com/nikic/FastRoute) together with the Meek HTTP component:

```
require __DIR__ . '/vendor/autoload.php';

use FastRoute\simpleDispatcher;
use FastRoute\RouteCollector;
use FastRoute\Dispatcher;
use Meek\Http\ClientError;
use Meek\Http\ClientError\MethodNotAllowed;
use Meek\Http\ClientError\NotFound;
use Zend\Diactoros\ServerRequestFactory;
use Zend\Diactoros\Response\TextResponse;
use Zend\Diactoros\Response\SapiEmitter;

$dispatcher = simpleDispatcher(function(RouteCollector $r) {
    $r->addRoute('GET', '/users', 'get_all_users_handler');
    $r->addRoute('GET', '/user/{id:\d+}', 'get_user_handler');
    $r->addRoute('GET', '/articles/{id:\d+}[/{title}]', 'get_article_handler');
});

$request = ServerRequestFactory::fromGlobals();
$routeInfo = $dispatcher->dispatch($request->getMethod(), $request->getRequestTarget());

try {
    switch ($routeInfo[0]) {
        case Dispatcher::NOT_FOUND:
            throw new NotFound();
            break;

        case Dispatcher::METHOD_NOT_ALLOWED:
            $allowedMethods = $routeInfo[1];
            throw new MethodNotAllowed($allowedMethods);
            break;

        case Dispatcher::FOUND:
            $response = call_user_func_array($routeInfo[1], $routeInfo[2]);
            break;
    }
} catch (ClientError $httpClientError) {
    $response = new TextResponse((string) $httpClientError);    // response body...
    $response = $httpClientError->prepare($response);   // add headers, code, etc...
}

(new SapiEmitter())->emit($response);
```

API
---

[](#api)

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md).

Credits/Authors
---------------

[](#creditsauthors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE.md](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

3118d ago

### Community

Maintainers

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

---

Top Contributors

[![nbish11](https://avatars.githubusercontent.com/u/1518821?v=4)](https://github.com/nbish11 "nbish11 (32 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[http-interop/response-sender

A function to convert PSR-7 Response to HTTP output

46711.5k40](/packages/http-interop-response-sender)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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