PHP code example of simp / environment
1. Go to this page and download the library: Download simp/environment 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/ */
simp / environment example snippets
// Save configuration
\Simp\Environment\Environment::create("server_host", [
"host" => "localhost",
"port" => 3306,
"database" => "database",
"username" => "chance_",
"password" => "12345",
"prefix" => "chance_"
]);
// Get configuration data.
\Simp\Environment\Environment::load('server_host')