tuadmin / pdox
Useful Query Builder, PDO Class for PHP. A simple access to your SQL records.(FIXED by tuadmin)
1.0.2
2018-01-05 14:39 UTC
Requires
- php: >=5.4.0
- ext-pdo: *
This package is not auto-updated.
Last update: 2025-06-28 19:22:42 UTC
README
Fast, efficient and useful Query Builder and PDO Class for #PHP
Install
composer.json file:
{ "require": { "tuadmin/pdox": "dev-master" } }
after run the install command.
$ composer install
OR run the following command directly.
$ composer require tuadmin/pdox:dev-master
Example Usage
require 'vendor/autoload.php'; $config = [ 'host' => 'localhost', 'driver' => 'mysql', 'database' => 'test', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_general_ci', 'prefix' => '' ]; $db = new \Buki\Pdox($config); $records = $db->table('users') ->select('id, name, surname, age') ->where('age', '>', 18) ->orderBy('id', 'desc') ->limit(20) ->getAll(); var_dump($records); //other example $db = new \Buki\Pdox([ 'host' => '192.168.1.2:3607', 'driver' => 'mysql', 'database' => 'test', 'username' => 'root', 'password' => '']); $records = $db->table('users') ->select('id, name, surname, age') ->getAll(); var_dump($records);
Docs
Documentation page: PDOx Docs
Support
Licence
Contributing
- Fork it ( https://github.com/izniburak/pdox/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- izniburak İzni Burak Demirtaş - creator, maintainer