PHP code example of indgy / config

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

    

indgy / config example snippets


$config = new Config([
    "api" => [
        "user" => "Alex",
        "pass" => "sEcReT",
    ],
    "theme" => "dark",
]);

$config->get("theme");
<!-- dark -->

$config->get("api");
<!--
[
    "user" => "Alex",
    "pass" => "sEcReT",
]
-->

$config->get("size", "medium");
<!-- medium -->