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__.