PHP code example of semitexa / platform-settings
1. Go to this page and download the library: Download semitexa/platform-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/ */
semitexa / platform-settings example snippets
use Semitexa\Platform\Settings\Contract\SettingsStoreInterface;
// In your handler or service:
$this->settings->set('my-module', 'theme', 'dark');
$theme = $this->settings->get('my-module', 'theme');
$all = $this->settings->getAll('my-module');
$this->settings->remove('my-module', 'theme');