{"product_id":"decoupled-php-gabriel-anhaia-9798197044419","title":"Decoupled PHP: Clean and Hexagonal Architecture for Applications That Outlive the Framework","description":"\u003cp\u003eYour Laravel app shipped clean four years ago. Today every feature touches three files that should be unrelated, the test suite takes nine minutes, and the upgrade from version 9 to 11 has sat as a stale draft pull request for two quarters. The framework didn't betray you. The team wrote a Laravel app - not an application that uses Laravel.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eThis book teaches you to write the second kind.\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e\u003ci\u003eDecoupled PHP\u003c\/i\u003e combines Hexagonal Architecture (Cockburn's ports and adapters) with Clean Architecture (Martin's four rings) in a single pragmatic synthesis built for PHP 8.3+. No Java-in-PHP translations. No religious arguments. Both architectures, both honest about what they do well, both applied to real Laravel 11 and Symfony 7 codebases.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAcross 30 chapters and a complete, Dockerised reference application, you will: \u003c\/b\u003e\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003eModel a domain in pure PHP, with no framework imports and no Eloquent inheritance.\u003c\/li\u003e\n\u003cli\u003eDefine ports in the language of the business, not the language of the database.\u003c\/li\u003e\n\u003cli\u003eBuild the same use case behind three inbound adapters (HTTP, CLI, queue worker) and three outbound adapters (Doctrine, Guzzle, AMQP).\u003c\/li\u003e\n\u003cli\u003eApply the dependency rule with Deptrac so the architecture is enforced by CI.\u003c\/li\u003e\n\u003cli\u003eHandle transactions, errors, domain events, observability, and authorization through ports.\u003c\/li\u003e\n\u003cli\u003eMigrate a legacy Laravel service and a legacy Symfony service to the same shape, in production, one endpoint at a time. No freeze week.\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003eWritten for the mid-level to senior PHP engineer who has shipped a production service and watched it rot.\u003c\/p\u003e\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAuthor:\u003c\/b\u003e Gabriel Anhaia\u003cbr\u003e\u003cb\u003eISBN-13:\u003c\/b\u003e 9798197044419\u003cbr\u003e\u003cb\u003ePublisher:\u003c\/b\u003e Independently Published\u003cbr\u003e\u003cb\u003eLanguage:\u003c\/b\u003e English\u003cbr\u003e\u003cb\u003ePublished:\u003c\/b\u003e 05\/15\/2026\u003cbr\u003e\u003cb\u003ePages:\u003c\/b\u003e 404\u003cbr\u003e\u003cb\u003eFormat:\u003c\/b\u003e Paperback\u003cbr\u003e\u003cb\u003eWeight:\u003c\/b\u003e 1.19lbs\u003cbr\u003e\u003cb\u003eSize:\u003c\/b\u003e 9.00h x 6.00w x 0.83d","brand":"Gabriel Anhaia","offers":[{"title":"Paperback","offer_id":48801538179327,"sku":"9798197044419","price":24.99,"currency_code":"USD","in_stock":true}],"url":"https:\/\/www.whiterainbookhouse.com\/products\/decoupled-php-gabriel-anhaia-9798197044419","provider":"WR Book House","version":"1.0","type":"link"}