PHP code example of obelaw / o-configs

1. Go to this page and download the library: Download obelaw/o-configs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

obelaw / o-configs example snippets


o_config()->get('app.name') // Laravel;

o_config()->set('app.name', 'Obelaw');
o_config()->get('app.name') // Obelaw;

o_config()->set($path, $value);

o_config()->get($path, $default = null)

o_config()->has($path)

o_config()->forget($path)

use Obelaw\Configs\Support\Option;

Option::set($path, $value);
Option::get($path, $default = null);
Option::has($path);
Option::forget($path);
bash
php artisan migrate