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

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

awwar/symfony-http-entity-manager
=================================

Doctrine-like http client

1.0.4(2y ago)52.1kMITPHPPHP ^8.0

Since Sep 8Pushed 1y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (8)Versions (7)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)

- [Setup](SETUP.md)
- [Annotations](ANNOTATIONS.md)
- [Examples of use](EXAMPLES.md)

ToDo:
=====

[](#todo)

1. Implement work with formats other than "json"
2. When deleting a connection with an entity, a request to delete this relation is not sent
3. Late proxying. If there is a custom entity, and it has a collection of deals, to get a collection of proxy deals, you need to pass at least an array of their IDs. However, it is known about such api where the user can be obtained via `GET /users/123` and his deals via `GET /users/123/deals`. To do this, you need to implement late proxying.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

979d ago

Major Versions

1.0.3 → 2.0.0-rc2023-10-28

### 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 (10 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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