PHP Classes
elePHPant
Icontem

File: init.php

Recommend this page to a friend!
  Classes of Channaveer Hakari  >  Entity Generator  >  init.php  >  Download  
File: init.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Entity Generator
Generate database table access classes
Author: By
Last change: Added Port feature
Support port
Date: 7 months ago
Size: 319 bytes
 

Contents

Class file image Download
<?php

require_once 'autoload.php';
use
EntityGenerator\Database\DatabaseConnection;

$databaseConnection = new DatabaseConnection();

$connection = $databaseConnection
               
->setDatabase('mysql')
                ->
setHost('127.0.0.1')
                ->
setUser('root')
                ->
setPassword('')
                ->
setPort(3306)
                ->
getConnection();