PHP Classes

File: app/Database/config.php

Recommend this page to a friend!
  Classes of Rodrigo Faustino   PHP CRUD REST API   app/Database/config.php   Download  
File: app/Database/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP CRUD REST API
Implement an example REST API using MVC
Author: By
Last change:
Date: 8 months ago
Size: 1,146 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' => 'C:/Users/DELL/Downloads/OneDrive/Documentos/GitHub/fullcalendar/App/Database/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',
        ]
    ]

];