PHP code example of gaiatools / fulcrum-settings

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

    

gaiatools / fulcrum-settings example snippets


use GaiaTools\FulcrumSettings\Facades\Fulcrum;

// Check a feature flag
if (Fulcrum::isActive('new_dashboard')) {
    // ...
}

// Get a setting value
$value = Fulcrum::get('discount_percentage', default: 0);