PHPackages                             einar-hansen/http-sdk - 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. einar-hansen/http-sdk

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

einar-hansen/http-sdk
=====================

A PHP service that allows you to communicate with external apis using PSR-18 clients.

0.5.4(3y ago)01261MITPHPPHP ^8.1

Since Aug 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/einar-hansen/http-sdk)[ Packagist](https://packagist.org/packages/einar-hansen/http-sdk)[ Docs](https://github.com/einar-hansen/http-sdk)[ GitHub Sponsors](https://github.com/einar-hansen)[ RSS](/packages/einar-hansen-http-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (15)Versions (14)Used By (1)

PHP HTTP Gateway
================

[](#php-http-gateway)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5eab29483f6d605ceba39593608723fad188be6cc811c53cf79864af14d2e2c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65696e61722d68616e73656e2f687474702d73646b2e737667)](https://packagist.org/packages/einar-hansen/http-sdk)[![Minimum PHP Version](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/1ebb57c16f734f1dcf8526ad2e38071338e3e3894bf32c76f3a0912fda967ff9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f65696e61722d68616e73656e2f687474702d73646b2e737667)](https://packagist.org/packages/einar-hansen/http-sdk)[![Total Downloads](https://camo.githubusercontent.com/71a3802dc83101e8bee2d7a72394634749d40b53c9efbe6778effc5122e74f78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65696e61722d68616e73656e2f687474702d73646b2e737667)](https://packagist.org/packages/einar-hansen/http-sdk)

A PHP service that allows you to communicate with external apis using PSR-18 clients. This library does not have a dependency on Guzzle or any other library that sends HTTP requests. You can choose what library to use for sending HTTP requests.

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

[](#installation)

This package requires minimum PHP8.1 because of its use of enums.

You can install the package via composer:

```
composer require einar-hansen/http-sdk
```

Getting Started
---------------

[](#getting-started)

This package is designed to lets you build packages and sdk's that connects to external API services in record speed. All you have to do is extend the gateway and add your own endpoints and resources.

Implementations
---------------

[](#implementations)

- [PHP FootballData - API Service](https://github.com/einar-hansen/php-football-data)

Testing
-------

[](#testing)

This package requires PHP8.1. If you don't have this version locally or as default PHP version, then you can use the `bin/develop` helper script. The script is inspired by Laravel Sail, but is much simpler. To use the script you should have Docker installed. It will pull down PHP8.1 for you and allow you to run the testing commands below.

To use the script

```
# Enable helper script
chmod +x bin/develop

# Install PHP dependencies
bin/develop composer install

# Run code style formatting
bin/develop format

# Run static analysis
bin/develop analyse

# Run tests
bin/develop test
```

About
-----

[](#about)

Einar Hansen is a webdeveloper in Oslo, Norway. You'll find more information about me [on my website](https://einarhansen.dev).

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Total

13

Last Release

1376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7867c8e6cb949ab73460f6189d49e8423431864c495a389e650e82509e44d954?d=identicon)[einar-hansen](/maintainers/einar-hansen)

---

Top Contributors

[![einar-hansen](https://avatars.githubusercontent.com/u/49709354?v=4)](https://github.com/einar-hansen "einar-hansen (22 commits)")

---

Tags

httplaravelpsr-18einareinar-hansen

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/einar-hansen-http-sdk/health.svg)

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

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[laudis/neo4j-php-client

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

185702.8k44](/packages/laudis-neo4j-php-client)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)

PHPackages © 2026

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