2017 © Pedro Peláez
 

library fidb

Very lightweight and simple database interface for PHP

image

iassasin/fidb

Very lightweight and simple database interface for PHP

  • Friday, January 12, 2018
  • by iassasin
  • Repository
  • 0 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Fine Interface to Database

Very simple and lightweight database connection wrapper making easer and safer to construct queries., (*1)

Install

Use composer to install fidb:, (*2)

composer require iassasin/fidb

Usage

require_once 'vendor/autoload.php';

use Iassasin\Fidb\Connection\ConnectionMysql;

$db = new ConnectionMysql($host, $database, $user, $password);

$db->query('INSERT INTO table(num, str, txt) VALUES(%d, %s, %s)',
    123, 'string', 'and "text"'); // automatic string escaping

// build queries of any complexity with variables
$bs = $db->select()
    ->column('str')
    ->table('table')
    ->where('num > %d', 30);

foreach ($bs->execute()->fetchAll() as $row){
    echo $row['str'];
}

More examples see in example, (*3)

The Versions

12/01 2018

dev-master

9999999-dev https://github.com/iassasin/fidb

Very lightweight and simple database interface for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Avatar iassasin

database db database interface

12/01 2018

v0.1.3

0.1.3.0 https://github.com/iassasin/fidb

Very lightweight and simple database interface for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Avatar iassasin

database db database interface

09/01 2018

v0.1.2

0.1.2.0 https://github.com/iassasin/fidb

Very lightweight and simple database interface for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Avatar iassasin

database db database interface

09/01 2018

v0.1.1

0.1.1.0 https://github.com/iassasin/fidb

Very lightweight and simple database interface for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Avatar iassasin

database db database interface

08/01 2018

v0.1

0.1.0.0 https://github.com/iassasin/fidb

Very lightweight and simple database interface for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6

 

by Avatar iassasin

database db database interface