PHP Classes

File: backend/Database/config.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   Fast Router   backend/Database/config.php   Download  
File: backend/Database/config.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Fast Router
Route request to controller set in router classes
Author: By
Last change:
Date: 8 days ago
Size: 1,069 bytes
 

Contents

Class file image Download
<?php
return [
   
'database' => [
       
'driver' => 'sqlite', // 'pgsql', 'mysql', 'sqlite', 'sqlsrv' ,
       
'mysql' => [
           
'host' => 'localhost',
           
'db_name' => 'a01_teste',
           
'username' => 'root',
           
'password' => 'root123',
           
'charset' => 'utf8'
       
],
       
'sqlite' => [
           
'path' => 'agenda.db',
        ],
       
'sqlsrv' => [
           
'host' => 'localhost',
           
'db_name' => 'a01_teste',
           
'username' => 'root',
           
'password' => 'root123',
           
'charset' => 'utf8'
       
],
       
'pgsql' => [
           
'host' => 'localhost',
           
'db_name' => 'postgres',
           
'username' => 'root',
           
'password' => 'root123',
           
'port' => '5432',
           
'charset' => 'utf8'
       
],
       
'mongodb' => [
           
'host' => 'localhost',
           
'db_name' => 'a01_teste_mongo',
           
'username' => 'mongo_user',
           
'password' => 'mongo_password',
           
'port' => '27017',
        ]
    ]

];