Download the PHP package awwar/symfony-http-entity-manager without Composer
On this page you can find all versions of the php package awwar/symfony-http-entity-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awwar/symfony-http-entity-manager
More information about awwar/symfony-http-entity-manager
Files in awwar/symfony-http-entity-manager
Package symfony-http-entity-manager
Short Description Doctrine-like http client
License MIT
Informations about the package symfony-http-entity-manager
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:
real requests:
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!
- Setup
- Annotations
- Examples of use
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.
All versions of symfony-http-entity-manager with dependencies
symfony/config Version ~5.4|^6.0
symfony/dependency-injection Version ~5.4|^6.0
symfony/http-kernel Version ~5.4|^6.0
symfony/finder Version ~5.4|^6.0
symfony/http-client-contracts Version ^2.0|^3.0
awwar/php-http-entity-manager Version 1.0.0-rc