PHP code example of dartmoon / prestashop-config
1. Go to this page and download the library: Download dartmoon/prestashop-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/ */
dartmoon / prestashop-config example snippets
return [
'host' => 'localhost',
'port' => 21,
'user' => 'pippo'
'password' => 'pluto'
];
use Dartmoon\Config\Facades\Config;
// Without a default value
$host = Config::get('ftp.host');
// Using a default value
$port = Config::get('ftp.port', 21);