bankiru/doctrine-api-client
Doctrine-style entity manager for remote RPC APIs. Map entities via YAML, register RPC clients, and use Doctrine Common interfaces (metadata, proxies, repositories) to fetch and manage remote resources as if they were Doctrine entities.
JOIN-like operations) across heterogeneous data sources without manual API client code.OrderService fetching Inventory data via API).User entity with Profile from an external auth service).bulkSync(), reconcile()) for API operations not covered by standard Doctrine patterns.Adopt When:
Look Elsewhere If:
HttpClient + custom DTOs or API Platform.For Executives: "This package lets us treat remote APIs like database tables—using Doctrine ORM to fetch, query, and relate data from external services as if it were local. For example, we could pull product data from a third-party API and join it with our inventory in a single query, without writing custom API clients. This reduces integration complexity, speeds up development for microservices, and eases modernization of legacy systems. The trade-off is higher upfront setup (Doctrine configuration) and reliance on stable API contracts. Given our existing use of Doctrine, this could save significant development time for API-heavy features."
For Engineers:
*"If you’re already using Doctrine ORM and want to avoid writing repetitive API clients, this package lets you define RPC endpoints in YAML and access them via Doctrine repositories (e.g., $entityManager->getRepository(Product::class)->findBy([...])). Key benefits:
product->supplier triggers a separate API call).string, int).WHERE t.payload LIKE '%sample%').Downsides:
Use it for:
Avoid it for:
How can I help you explore Laravel packages today?