2017 © Pedro Peláez
 

library database

Abstract mysqli library for use with the Canteen Framework.

image

canteen/database

Abstract mysqli library for use with the Canteen Framework.

  • Saturday, October 12, 2013
  • by bigtimebuddy
  • Repository
  • 2 Watchers
  • 0 Stars
  • 276 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Canteen Database

Abstract mysqli library for use with the Canteen Framework. For documentation of the codebase, please see Canteen Database docs., (*1)

Installation

Install is available using Composer., (*2)

composer require canteen/database dev-master

Including using the Composer autoloader in your index., (*3)

require 'vendor/autoload.php';

Setup

use Canteen\Database;
$db = new Database(
    'localhost',    // MySQL host
    'root',         // MySQL username
    '12341234',     // MySQL user's password
    'my_database'   // Database name
);

Sample Usage

Create SQL queries with a simple, intuitive, object-oriented API., (*4)

// Create a select query of a properties
// on a user's table of all active users
$users = $db->select('user_id', 'first_name', 'last_name')
    ->from('users')
    ->where('active=1')
    ->results();

Rebuild Documentation

This library is auto-documented using YUIDoc. To install YUIDoc, run sudo npm install yuidocjs. Also, this requires the project CanteenTheme be checked-out along-side this repository. To rebuild the docs, run the ant task from the command-line., (*5)

ant docs

License

Copyright (c) 2013 Matt Karl, (*6)

Released under the MIT License., (*7)

The Versions

12/10 2013

dev-master

9999999-dev http://github.com/Canteen/CanteenDatabase

Abstract mysqli library for use with the Canteen Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database mysql mysqli

12/10 2013

1.0.0

1.0.0.0 http://github.com/Canteen/CateenDatabase

Abstract mysqli library for use with the Canteen Framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

database mysql mysqli

12/10 2013

1.0.1

1.0.1.0 http://github.com/Canteen/CateenDatabase

Abstract mysqli library for use with the Canteen Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database mysql mysqli

12/10 2013

1.1.1

1.1.1.0 http://github.com/Canteen/CanteenDatabase

Abstract mysqli library for use with the Canteen Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database mysql mysqli

12/10 2013

1.1.2

1.1.2.0 http://github.com/Canteen/CanteenDatabase

Abstract mysqli library for use with the Canteen Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database mysql mysqli

12/10 2013

1.1.3

1.1.3.0 http://github.com/Canteen/CanteenDatabase

Abstract mysqli library for use with the Canteen Framework.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

database mysql mysqli