Every now and then you find youself writing the same bit of code in many places, sometimes it’s a simple trait or even an interface. For me it is a way to replace standard arrays on PHP classes. In many of my projects and packages I typically have something I would call a container object, something that’s main purpose is to hold items passed to it and allow easy interaction with those items. An array would allow for this, but it always feel combersome having to dive into the array_ functions when writing PHP.

Now we have a simple config class we can start to work with it: $settings = require __DIR__.
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