PHP code example of jwyuen / configee-php

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

    

jwyuen / configee-php example snippets


$configee = new \Configee\Configee('your/config/path');
$config = $configee->getConfig();



return array(
  'host' => 'localhost',
  'user' => 'amysqluser',
  'password' => 'apassword',
);



return array(
  'use_cookies' => true,
  'aconfigoption' => 1,
);

array(
  "db" => array(
    "mysql" => array(
      "host" => "localhost",
      "user" => "amysqluser",
      "password" => "apassword"
    )
  ),
  "general" => array(
    "use_cookies" => true,
    "aconfigoption" => 1
  )
)
json
{
  "uen/configee-php": "1.1"
  }
}

configroot
\- db
 |- mysql.php
 \- AnEmptyFolder
\-general.php