https://github.com/duncan3dc/sql
A simple database abstraction layer for PHP, with an on disk caching facility
https://github.com/duncan3dc/sql
mssql mysql odbc php sql
Last synced: 2 months ago
JSON representation
A simple database abstraction layer for PHP, with an on disk caching facility
- Host: GitHub
- URL: https://github.com/duncan3dc/sql
- Owner: duncan3dc
- License: apache-2.0
- Created: 2017-02-27T22:14:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T22:18:20.000Z (almost 9 years ago)
- Last Synced: 2025-02-22T13:58:27.224Z (over 1 year ago)
- Topics: mssql, mysql, odbc, php, sql
- Language: PHP
- Size: 83 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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/](http://duncan3dc.github.io/sql/api/namespaces/duncan3dc.Laravel.html)
[](https://packagist.org/packages/duncan3dc/sql)
[](https://travis-ci.org/duncan3dc/sql)
[](https://coveralls.io/github/duncan3dc/sql)
## Installation
The recommended method of installing this library is via [Composer](//getcomposer.org/).
Run the following command from your project root:
```bash
$ composer require duncan3dc/sql
```
## Getting Started
```php
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](CHANGELOG.md) 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](//github.com/duncan3dc/sql/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)