PHP code example of symkit / settings-bundle

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

    

symkit / settings-bundle example snippets


   return [
       // ...
       Symkit\SettingsBundle\SettingsBundle::class => ['all' => true],
   ];
   

use Symkit\SettingsBundle\Contract\SettingsManagerInterface;

public function __construct(
    private SettingsManagerInterface $settingsManager,
) {}

public function someMethod(): void
{
    $settings = $this->settingsManager->get();
}