PHPackages                             hypercode/query - 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. hypercode/query

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

hypercode/query
===============

With that, you can use PHP to create SQL query.

1.0.0(5y ago)1161nonePHPPHP &gt;=5.4

Since Dec 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/JoaoGabrielOliveira/hyper_query)[ Packagist](https://packagist.org/packages/hypercode/query)[ RSS](/packages/hypercode-query/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Hyper Query
===========

[](#hyper-query)

This project is, basically, a SQL query constructor. With that, you can use PHP to create SQL query with a more practical method practical

Exemples of SELECT
------------------

[](#exemples-of-select)

A select table query

```
$query = new Query;
$query->select('tabela');
```

A select table query with a specific fields

```
$query = new Query;
$query->select('tabela','name, age, another');
```

A select table query, but show just a one result

```
$query = new Query;
$query->select('tabela')->limit(1);
```

[*Click here to see more functions to use on select*](docs/select.md)

A select table query, with a where condition.

```
$query = new Query;
$query->select('tabela')->where(['id' => 1]);
$query->select('tabela')->where(['nome' => 'Antonio']);
```

[*Click here to see more about **Where conditions***](docs/where.md)

---

Exemples of INSERT
------------------

[](#exemples-of-insert)

A insert values query

```
$query = new Query;
$query->insert('tabela', ['id','name','age', 'created_at']);
```

```
$query = new Query;
$query->insert('tabela', ['id','name','age', 'created_at'])
->addValue(1,'Charles',18, 'NOW()')
->addValue(1,'Kevin', 10, time());
```

[*Click here to see more about **insert method***](docs/insert.md)

---

Exemples of DELETE
------------------

[](#exemples-of-delete)

A delete query

```
$query = new Query;
$query->delete('tabela');
```

```
$query = new Query;
$query->delete('tabela')->where(['id' => 10]);
```

---

Exemples of UPDATE
------------------

[](#exemples-of-update)

A update query

```
$query = new Query;
$query->update('tabela')->set('name','Gabriel');

$query->update('tabela')
    ->set('id',1)
    ->set('name','Gabriel')->where(['id' => 1]);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

1965d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50085959?v=4)[João "John" Gabriel](/maintainers/JoaoGabrielOliveira)[@JoaoGabrielOliveira](https://github.com/JoaoGabrielOliveira)

---

Top Contributors

[![JoaoGabrielOliveira](https://avatars.githubusercontent.com/u/50085959?v=4)](https://github.com/JoaoGabrielOliveira "JoaoGabrielOliveira (11 commits)")

---

Tags

phpsqlsql-querysqlqueryhyperquery-maker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hypercode-query/health.svg)

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

###  Alternatives

[rennokki/laravel-eloquent-query-cache

Adding cache on your Laravel Eloquent queries' results is now a breeze.

1.1k4.0M14](/packages/rennokki-laravel-eloquent-query-cache)[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)[nilportugues/sql-query-builder

An elegant lightweight and efficient SQL QueryInterface BuilderInterface supporting bindings and complicated query generation.

425239.4k6](/packages/nilportugues-sql-query-builder)[supliu/laravel-query-monitor

Laravel Query Monitor

287111.9k](/packages/supliu-laravel-query-monitor)[illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

168237.4k](/packages/illuminated-db-profiler)[nilportugues/sql-query-formatter

A very lightweight PHP class that reformats unreadable and computer-generated SQL query statements to human-friendly, readable text.

401.1M24](/packages/nilportugues-sql-query-formatter)

PHPackages © 2026

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