Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.
Installs: 1 635 131
Open Issues: 25
- php: >=5.6
- ext-pdo_sqlite: *
- yoast/phpunit-polyfills: ^1.0
- aura/sql: Provides an extension to the native PDO along with a profiler and connection locator.
This package is auto-updated.
Last update: 2023-03-12 05:51:45 UTC
Provides query builders for MySQL, Postgres, SQLite, and Microsoft SQL Server. These builders are independent of any particular database connection library, although PDO in general is recommended.
Installation and Autoloading
This package is installable and PSR-4 autoloadable via Composer as aura/sqlquery.
Alternatively, download a release, or clone this repository, then map
Aura\SqlQuery\ namespace to the package
This package requires PHP 5.6 or later; it has been tested on PHP 5.6-8.1. We recommend using the latest available version of PHP as a matter of principle.
Aura library packages may sometimes depend on external interfaces, but never on external implementations. This allows compliance with community standards without compromising flexibility. For specifics, please examine the package composer.json file.
This project adheres to Semantic Versioning.
To run the unit tests at the command line, issue
composer install and then
./vendor/bin/phpunit at the package root. This requires Composer to be
This package attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.
To ask questions, provide feedback, or otherwise communicate with other Aura users, please join our Google Group, follow @auraphp, or chat with us on Freenode in the #auraphp channel.
This package is fully documented here.