Judah Wright

A collection of my work

Laravel Options

posted 11 04 2018 in Open Source

For a brief rundown on exactly why this library came into being, you can check out the blog post I wrote about it.

The short version it is an object oriented approach to storing and retrieving general site options. It is as simple as the following:

\Option::set('setting name', 'setting value');
echo \Option::get('setting name', 'default value'); // prints "setting value"

This library comes pre-packaged with a bunch of different drivers for maximum compatibility. If none of the default drivers work for you, you can use your own by implementing a simple interface also included in the library.

You can check it out on both Packagist and GitLab.