PHP code example of terowoc / datacore
1. Go to this page and download the library: Download terowoc/datacore 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/ */
terowoc / datacore example snippets
use Terowoc\DataCore\DataBase;
$database = 'datacore'; // Database Name
$username = 'postgres'; // Database UserName
$password = ''; // Database Password
$host = 'localhost'; // Database host [default: 127.0.0.1]
$port = 3306; // Database port [default: 5432]
$driver = 'pgsql'; // Driver name [default: pgsql]
$db = new DataBase(
$database,
$username,
$password,
$host,
$port,
$driver
);