Category: PHP

There’s no shortage of lectures and blogposts on “Hexagonal Architecture” these days, but many of them give a much broader view of Hexagonal Architecture than it was originally presented by its author Alistar Cockburn. There’s no limit to the number of layers but authors usually suggest three or four.

In any case, our web client speaks HTTP and our Core speaks PHP so we need to transform HTTP into PHP and vice versa.

All we have to do is to write another adapter that will take the input from the CLI and transform it into that same PHP format our Core can understand. Notice how we didn’t need to touch the code in the Core to support this new method of talking to our system.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners