terowoc/datacore

DataCore Library for PHP

1.0 2023-10-26 09:55 UTC

This package is auto-updated.

Last update: 2024-09-26 12:27:58 UTC


README

Getting Started

Install using composer:

composer require terowoc/datacore

Supported Databases

Below is a list of supported databases, and their compatibly tested versions alongside a list of supported features and relevant limits.

Usage

Connecting to a Database

require_once __DIR__ . '/vendor/autoload.php';

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
);