PHP code example of klaravel / settings

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

    

klaravel / settings example snippets


   composer 

    Klaravel\Settings\ServiceProvider::class,
    

    'Setting' => Klaravel\Settings\SettingsFacade::class,
    

Setting::put('key', 'value');   // Insert settings into database
Setting::set('key', 'value');   // Insert settings into database
Setting::get('key');            // Get settings from database
Setting::has('key');            // Check key exits in database
Setting::forget('key');         // Delete key and value from database

    php artisan settings:migration

    // for migrate database
    php artisan migrate