zazalt / databaser
Databaser
dev-master
2017-02-24 22:57 UTC
Requires
- php: >=7.1.0
- zazalt/omen: dev-master
This package is not auto-updated.
Last update: 2024-12-27 23:31:19 UTC
README
Databaser is a PHP library/package to 'translate' a database to array.
Requirements
- php >= 7.1.0
Packagist Dependencies
Installation
With composer:
{ "require": { "zazalt/databaser": "dev-master" } }
Usage
/** * Will return an array with all tables/entities and rows */ print_r( Zazalt\Databaser\Databaser::getInstance() ->setEngine(\Zazalt\Omen\Omen::ENGINE_POSTGRESQL) //->setHost('127.0.0.1') // If not set, default is 127.0.0.1 //->setPort() // If not set, default is 5432 (PostgreSQL default port) ->setUsername('your_username') ->setPassword('your_password') ->setDatabase('your_database_name') ->run() );