2017 © Pedro Peláez
 

library dbconnect

Module for simple connect to DataBase

image

kolserdav/dbconnect

Module for simple connect to DataBase

  • Tuesday, May 15, 2018
  • by kolserdav
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 21 % Grown

The README.md

This is a simple module that returns an object of the PDO class. MySql., (*1)

Dependecies
require php : ^7.0, symfony/yaml : ^4.0
reguire-dev: phpunit/phpunit : ^7.0
"phpunit/dbunit": "^4.0", (*2)

Instalation
-$ composer require kolserdav/dbconnect
-$ composer update, (*3)

{ -rename file database-example.yaml to database.yaml
-copy folder config in root of your project
-add in file database.yaml self variables }
or call: -$php vendor/kolserdav/dbconnect/install, (*4)

Using, (*5)

use Avir\Database\Modules\DB;, (*6)

$db = new DB;, (*7)

In order to get PDO:, (*8)

$pdo = $db->getPDO();, (*9)

To get STMT:, (*10)

$db->getStmt($query,[$values] = array());, (*11)

To send a request:, (*12)

$db->stmtCall($stmt, $fetchRule, $fetchOption);, (*13)

Or insert your queries in to /config/queries.php and use:, (*14)

$db->callDB($queryName, [$values] = array(), $fetchOption = 0, $fetchRule = 'fetch'), (*15)

To fine-tune the selection rules: need call to FetchRule::class methods, (*16)

hisFetch(),hisFetchColumn()..., (*17)

By results of work, I will improve this module..., (*18)

The Versions

15/05 2018

dev-master

9999999-dev

Module for simple connect to DataBase

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kolserdav

15/05 2018

v2.0.10

2.0.10.0

Module for simple connect to DataBase

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kolserdav

27/04 2018

v2.0.9

2.0.9.0

Module for simple connect to DataBase

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kolserdav

28/03 2018

v2.0.8

2.0.8.0

Module for simple connect to DataBase

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kolserdav

23/03 2018

dev-dev

dev-dev

Module for simple connect to DataBase

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kolserdav