PHP code example of zakhayko / settings

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

    

zakhayko / settings example snippets


    settings($key, $default); //Get attribute
    settings([$key1=>$value1]); //Set attribute
    settings(); //Returns Valuestore object
    

    php artisan settings:get
    php artisan settings:get {key}
    php artisan settings:set {key} {value?} (--bool?, --int, --null)
    php artisan settings:forget {key}
    php artisan settings:flush