PHP code example of intelrx / sitesettings

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

    

intelrx / sitesettings example snippets


composer 

use Intelrx\Sitesettings\SiteConfig;

SiteConfig::store('phone', '1234567890');
SiteConfig::get('phone');
SiteConfig::update('phone', '18487');
SiteConfig::delete('phone');
SiteConfig::list()

{{ SiteConfig::get('phone') }}

SiteConfig::store('phone', '1234567890');

$phone = SiteConfig::get('phone');

SiteConfig::update('phone', '18487');

SiteConfig::delete('phone');

SiteConfig::list();