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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners