PHPackages                             awwar/php-http-entity-manager - 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. awwar/php-http-entity-manager

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

awwar/php-http-entity-manager
=============================

Doctrine-like http client

1.0.0-rc(2y ago)010MITPHPPHP ^8.0

Since Oct 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/awwar/php-http-entity-manager)[ Packagist](https://packagist.org/packages/awwar/php-http-entity-manager)[ RSS](/packages/awwar-php-http-entity-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Description
===========

[](#description)

A library that allows you to work with external APIs in the same way that a Symfony Doctrine ORM works with databases.

for example:

```
$users = $this->httpEntityManager->getRepository(User::class);
$admins = $this->httpEntityManager->getRepository(Admin::class);

$sasha = $users->find(124);
$alex = $admins->filterOne(['filter' => ['specialization' => 'cinema']]);

$deal = Deal::create($sasha, $alex, "buying a movie ticket", 30);

$sasha->getDeals()->add($deal);

$alex->setSpecialization('cinema');

$this->httpEntityManager->persist($deal);
$this->httpEntityManager->flush();
```

real requests:

```
# get customer
curl --request GET \
  --url 'https://api.mysite.com/users/124'

# get responsible
curl --request GET \
  --url 'https://api.mysite.com/admins?filter[specialization]=cinema'

# create deal
curl --request POST \
  --url https://api.mysite.com/deals/ \
  --data '{
    "amount": 30,
    "title": "buying a movie ticket",
    "relations": [
       {"name": "customer", "id": 124}
       {"name": "responsible", "id": 555}
    ]
'

# add created deal to customer
curl --request PATCH \
  --url https://api.mysite.com/users/124 \
  --data '{
    "relations": [
       {"name": "deal", "id": 322}
    ]
'
```

**As we can see, all the changes were applied in the right order, and the changes by Alex did not apply at all, because we didn't change the value of his specialization. All thanks to UnitOfWork, which tracks changes and executes them in the right sequence and does not allow unnecessary changes that could affect system performance.**

Looks simple? See more!
=======================

[](#looks-simple-see-more)

- [Examples of use](EXAMPLES.md)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

924d ago

### Community

Maintainers

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

---

Top Contributors

[![awwar](https://avatars.githubusercontent.com/u/28871876?v=4)](https://github.com/awwar "awwar (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/awwar-php-http-entity-manager/health.svg)

```
[![Health](https://phpackages.com/badges/awwar-php-http-entity-manager/health.svg)](https://phpackages.com/packages/awwar-php-http-entity-manager)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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