Skip to content
A simple database abstraction layer for PHP, with an on disk caching facility
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.coveralls.yml
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

sql

A simple database abstraction layer for PHP, with an on disk caching facility

Full documentation is available at http://duncan3dc.github.io/sql/
PHPDoc API documentation is also available at http://duncan3dc.github.io/sql/api/

Latest Stable Version Build Status Coverage Status

Installation

The recommended method of installing this library is via Composer.

Run the following command from your project root:

$ composer require duncan3dc/sql

Getting Started

use duncan3dc\Sql\Sql;
use duncan3dc\Sql\Drivers\Mysql\Server;

require __DIR__ . "/vendor/autoload.php";

$sql = new Sql(new Server($hostname, $username, $password));

$row = $sql->select("table", [
    "field1"    =>  "value1",
]);
print_r($row);

Read more at http://duncan3dc.github.io/sql/

Changelog

A Changelog has been available since the beginning of time

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter

You can’t perform that action at this time.