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

ActiveMarko-module[HTTP &amp; Networking](/categories/http)

marko/http
==========

HTTP client contracts for Marko Framework

0.7.0(3w ago)072MITPHPPHP ^8.5

Since Mar 25Pushed 3w agoCompare

[ Source](https://github.com/marko-php/marko-http)[ Packagist](https://packagist.org/packages/marko/http)[ RSS](/packages/marko-http/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (7)Versions (18)Used By (2)

marko/http
==========

[](#markohttp)

Contracts for HTTP requests — type-hint against `HttpClientInterface` so your code works with any HTTP driver.

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

[](#installation)

```
composer require marko/http
```

Note: You also need an implementation package such as `marko/http-guzzle`.

Quick Example
-------------

[](#quick-example)

```
use Marko\Http\Contracts\HttpClientInterface;

class PaymentGateway
{
    public function __construct(
        private HttpClientInterface $httpClient,
    ) {}

    public function charge(float $amount): array
    {
        $response = $this->httpClient->post('https://api.payments.com/charge', [
            'json' => ['amount' => $amount],
        ]);

        return $response->json();
    }
}
```

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

[](#documentation)

Full usage, API reference, and examples: [marko/http](https://marko.build/docs/packages/http/)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance94

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community13

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

Recently: every ~15 days

Total

16

Last Release

27d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (7 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

PHPackages © 2026

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