Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Domain-Driven Design in PHP

Domain-Driven Design in PHP

Wojciech Sznapka

September 27, 2014
Tweet

More Decks by Wojciech Sznapka

Other Decks in Programming

Transcript

  1. Hi! I'm Wojciech Sznapka * Head Of Development @ Cherry

    Poland * Coding since 10 years * Interested in architecture, Big Data, Ice Hockey
  2. It's build using layers * User interface * Application layer

    * Domain layer * Infrastructure layer
  3. Infrastructure layer helps with persisting entities (using a backing service*

    of your choice) * http://12factor.net/backing-services
  4. To achieve that, value objects need to be immutable* *

    http://blog.sznapka.pl/immutable-value-objects-in-php
  5. It uses your ORM library to build specific queries or

    use other vendors to obtain objects
  6. “Bounded Context is a central pattern in Domain-Driven Design”* *

    http://martinfowler.com/bliki/BoundedContext.html