DEV Community

Discussion on: Domain Driven Design with PHP and Symfony

Collapse
 
ludofleury profile image
Ludovic Fleury

Hi Quentin, as usual « it depends » :)
We always need the context to try to address it.

If you are into translation or email marketing business and e-mail is one of your product, well it’s probably in your core domain, following many rules, invariant and logic.

If you are into ad with url proxy or url shortener with stats or even SEO optimisation business, maybe url generation will be in your core domain.

If not, it might be considered infrastructure. What’s in the domain depends strongly on business requirement about the concept (email, url). Does it needs to « mutate » following an advanced state logic ? DDD might be worth the upfront cost and complexity.

Otherwise simple CRUD does the job.