PHPackages                             hi/sqlquery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. hi/sqlquery

ActiveLibrary[Database &amp; ORM](/categories/database)

hi/sqlquery
===========

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4.1.0(1y ago)01.5kMITPHPPHP &gt;=8.1

Since Jan 7Pushed 10mo agoCompare

[ Source](https://github.com/hi-frameork/Aura.SqlQuery)[ Packagist](https://packagist.org/packages/hi/sqlquery)[ RSS](/packages/hi-sqlquery/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelogDependencies (3)Versions (20)Used By (0)

Aura.SqlQuery
=============

[](#aurasqlquery)

Provides query builders for MySQL, Postgres, SQLite, and Microsoft SQL Server. These builders are independent of any particular database connection library, although [PDO](http://php.net/PDO) in general is recommended.

Installation and Autoloading
----------------------------

[](#installation-and-autoloading)

This package is installable and PSR-4 autoloadable via Composer as [aura/sqlquery](https://packagist.org/packages/aura/sqlquery).

Alternatively, [download a release](https://github.com/auraphp/Aura.SqlQuery/releases), or clone this repository, then map the `Aura\SqlQuery\` namespace to the package `src/` directory.

Dependencies
------------

[](#dependencies)

This package requires PHP 5.6 or later; it has been tested on PHP 5.6, PHP 7, and HHVM. 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](./composer.json) file.

Quality
-------

[](#quality)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/59d3805a0595fb79bd6ce357edca15071c17d2bf25d43da36afde1cc512e75dc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617572617068702f417572612e53716c51756572792f6261646765732f7175616c6974792d73636f72652e706e673f623d332e78)](https://scrutinizer-ci.com/g/auraphp/Aura.SqlQuery/)[![Code Coverage](https://camo.githubusercontent.com/26a9173f95878d23a3ca38874d72652ec8a618570ec40c7a016ae81b5feaaba1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617572617068702f417572612e53716c51756572792f6261646765732f636f7665726167652e706e673f623d332e78)](https://scrutinizer-ci.com/g/auraphp/Aura.SqlQuery/)[![Build Status](https://camo.githubusercontent.com/746cb59716ac76b808c6240f99fd27ab6efee080e9a9909becdb77354cef729a/68747470733a2f2f7472617669732d63692e6f72672f617572617068702f417572612e53716c51756572792e706e673f6272616e63683d332e78)](https://travis-ci.org/auraphp/Aura.SqlQuery)

This project adheres to [Semantic Versioning](http://semver.org/).

To run the unit tests at the command line, issue `composer install` and then `./vendor/bin/phpunit` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`.

This package attempts to comply with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

Community
---------

[](#community)

To ask questions, provide feedback, or otherwise communicate with other Aura users, please join our [Google Group](http://groups.google.com/group/auraphp), follow [@auraphp](http://twitter.com/auraphp), or chat with us on Freenode in the #auraphp channel.

Documentation
-------------

[](#documentation)

This package is fully documented [here](./docs/index.md).

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance46

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~218 days

Recently: every ~134 days

Total

19

Last Release

585d ago

Major Versions

2.7.1 → 3.0.0-alpha.12022-05-11

2.8.0 → 3.0.02023-04-25

2.8.1 → 4.0.02024-10-11

PHP version history (5 changes)2.0.0-beta1PHP &gt;=5.4.0

2.0.0PHP &gt;=5.3.0

2.7.0PHP &gt;=5.3.9

3.0.0-alpha.1PHP &gt;=5.6

4.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bf04623823ce7d320e818c832994b0008156ee649760c08ab5e2d6e56f4d733?d=identicon)[Anoxia](/maintainers/Anoxia)

---

Top Contributors

[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (41 commits)")[![MAXakaWIZARD](https://avatars.githubusercontent.com/u/1138453?v=4)](https://github.com/MAXakaWIZARD "MAXakaWIZARD (31 commits)")[![pavarnos](https://avatars.githubusercontent.com/u/589595?v=4)](https://github.com/pavarnos "pavarnos (20 commits)")[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (12 commits)")[![holla-wangqiang](https://avatars.githubusercontent.com/u/110578128?v=4)](https://github.com/holla-wangqiang "holla-wangqiang (9 commits)")[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (7 commits)")[![pmjones](https://avatars.githubusercontent.com/u/25754?v=4)](https://github.com/pmjones "pmjones (6 commits)")[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (4 commits)")[![cxj](https://avatars.githubusercontent.com/u/446131?v=4)](https://github.com/cxj "cxj (3 commits)")[![brandonsavage](https://avatars.githubusercontent.com/u/197889?v=4)](https://github.com/brandonsavage "brandonsavage (3 commits)")[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (3 commits)")[![cammytown](https://avatars.githubusercontent.com/u/735509?v=4)](https://github.com/cammytown "cammytown (3 commits)")[![email-yuye](https://avatars.githubusercontent.com/u/175289169?v=4)](https://github.com/email-yuye "email-yuye (3 commits)")[![jakejohns](https://avatars.githubusercontent.com/u/174708?v=4)](https://github.com/jakejohns "jakejohns (2 commits)")[![djmattyg007](https://avatars.githubusercontent.com/u/489338?v=4)](https://github.com/djmattyg007 "djmattyg007 (2 commits)")[![ramirovarandas](https://avatars.githubusercontent.com/u/15105992?v=4)](https://github.com/ramirovarandas "ramirovarandas (2 commits)")[![elazar](https://avatars.githubusercontent.com/u/15487?v=4)](https://github.com/elazar "elazar (2 commits)")[![Grummfy](https://avatars.githubusercontent.com/u/668804?v=4)](https://github.com/Grummfy "Grummfy (2 commits)")[![tamakiii](https://avatars.githubusercontent.com/u/264325?v=4)](https://github.com/tamakiii "tamakiii (1 commits)")[![afilina](https://avatars.githubusercontent.com/u/199835?v=4)](https://github.com/afilina "afilina (1 commits)")

---

Tags

databasemysqlsqlitepostgresqlpostgressqlpdopgsqlsqlserverquerydbselectsql serverupdatedeleteinsertdml

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hi-sqlquery/health.svg)

```
[![Health](https://phpackages.com/badges/hi-sqlquery/health.svg)](https://phpackages.com/packages/hi-sqlquery)
```

###  Alternatives

[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[atlas/query

Object-oriented query builders and performers for MySQL, Postgres, SQLite, and SQLServer.

41249.0k7](/packages/atlas-query)[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

41234.1k4](/packages/aura-sqlschema)[aura/sql

A PDO extension that provides lazy connections, array quoting, query profiling, value binding, and convenience methods for common fetch styles. Because it extends PDO, existing code that uses PDO can use this without any changes to the existing code.

5632.5M43](/packages/aura-sql)[delight-im/db

Safe and convenient SQL database access in a driver-agnostic way

49156.8k7](/packages/delight-im-db)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
