2017 © Pedro Peláez
 

library likepdo

Similar database library to PDO

image

erickmcarvalho/likepdo

Similar database library to PDO

  • Friday, October 31, 2014
  • by erickmcarvalho
  • Repository
  • 1 Watchers
  • 3 Stars
  • 39 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

LikePDO

Similar database library to PDO, (*1)

The LikePDO library is an alternative for those who need to use a database library similar to PDO without the need for native extension. Is fully developed in PHP, using standard features such as MSSQL library and the like, without use the native PDO., (*2)

Features

  • Well organized and structured files.
  • Same methods, constants and syntax of the native PDO.
  • Use the PDO::* constants.
  • Defines the constant PDO::* if the PDO extension is not installed.

Installing

Here's a very simple way to install:, (*3)

  1. Use Composer to install LikePDO into your project:, (*4)

    composer require erickmcarvalho/likepdo:0.1.*
    
  2. Simple example, (*5)

    $dbh = new \LikePDO\LikePDO("mssql:host=127.0.0.1;dbname=Project", "sa", "123456");
    $stmt = $dbh->prepare("SELECT * FROM User WHERE CodUser = ?");
    $stmt->bindValue(1, 1, PDO::PARAM_INT);
    $stmt->execute();
    
    $fetch = $stmt->fetch(PDO::FETCH_OBJ);
    

All documentation can be based on the PHP manual on the PDO., (*6)

Available Drivers

LikePDO currently supports the following drivers:, (*7)

  • Microsoft SQL Server (mssql): Requires the mssql extension

Requirements

  • PHP 5.3 (>=)
  • Mssql Library (for Microsoft SQL Server driver)

The Versions

31/10 2014

dev-master

9999999-dev

Similar database library to PDO

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

31/10 2014

0.1.1

0.1.1.0

Similar database library to PDO

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

26/09 2014

0.1.0

0.1.0.0

Similar database library to PDO

  Sources   Download

MIT

The Requires

  • php >=5.3.0