PHP code example of kphcdr / kconf

1. Go to this page and download the library: Download kphcdr/kconf 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/ */

    

kphcdr / kconf example snippets

 php
        //store config
        $r = (new Kconf(\Illuminate\Support\Facades\Cache::repository(\Illuminate\Support\Facades\Cache::getStore()), config("app.name"), $this->app->environment(), 1234))->setNeedCache($this->app->environment("production"))->try();
        if ($c = Arr::get($r, 'data.config')) {
            config([
                "kconf"=>$c
            ]);
        }