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

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