PHP Classes

File: config.php

Recommend this page to a friend!
  Packages of Nahidul Hasan   Simplex   config.php   Download  
File: config.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Simplex
Example application based on a MVC framework
Author: By
Last change:
Date: 2 years ago
Size: 383 bytes
 

 

Contents

Class file image Download
<?php

return  [

    'database' => [
        'name' => getenv('DB_DATABASE'),
        'username' => getenv('DB_USERNAME'),
        'password' => getenv('DB_PASSWORD'),
        'connection' => getenv('DB_CONNECTION').':host='.getenv('DB_HOST'),
        'port' => getenv('DB_PORT'),
        'options' => [
            PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
        ]
    ]

];