Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tina4stack/tina4php-pdo

PDO Database drivers for Tina4
https://github.com/tina4stack/tina4php-pdo

Last synced: 18 days ago
JSON representation

PDO Database drivers for Tina4

Awesome Lists containing this project

README

        

#PDO
##Installing

```
composer install tina4stack/tina4php-pdo
```

for development version as we test

```
composer install tina4stack/tina4php-pdo:dev-main
```

Example of using the PDO driver

```
global $DBA;
$DBA = new \Tina4\DataPDO("sqlite:test.db");

global $DBA;
$DBA = \Tina4\DataPDO("dblib:host=".$_ENV["DB_HOST"].":".$_ENV["DB_PORT"].";dbname=".$_ENV["DB_NAME"],$_ENV["DB_USER"],$_ENV["DB_PASSWORD"]);

```