PHPackages                             caoson/simple\_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. caoson/simple\_query

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

caoson/simple\_query
====================

v1.0.1(3y ago)07MITPHP

Since Dec 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/caovanson2121231267312/simple_query_builder_php)[ Packagist](https://packagist.org/packages/caoson/simple_query)[ RSS](/packages/caoson-simple-query/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

simple\_query\_builder\_php
===========================

[](#simple_query_builder_php)

composer require caoson/simple\_query
-------------------------------------

[](#composer-require-caosonsimple_query)

- **Sử dụng Query builder**

```
$user = DB::table('users')
        ->select('*')
        ->where('first_name',"like", "'%c%'")
        ->get();
dd($user);
```

```
$user = DB::table('users')
        ->select('id','name')
        ->get();
dd($user);
```

- **Sử dụng Model**
- Truy vấn bảng users

```
    $users = User::limit(3)->orderBy("id","desc")->where("first_name","like", "'%h%'")->get();
    dd($users);
```

- Thêm 1 bản ghi:

```
$user = User::create([
    "email" => "abc@gmail.com",
    "password" => "12345678",
    "first_name" => "hhhhhhhhhhhhhh",
    "last_name" => "abcabcabcbac",
    "full_name" => "12313123",
    "phone" => "1231231313",
    "address" => "123",
    "user_name" => "123",
    "role" => "user",
]);
```

- Cập nhật 1 bản ghi:

```
$data = [
    "email" => "abc@gmail.com",
    "password" => "12345678",
    "first_name" => "hhhhhhhhhhhhhh",
    "last_name" => "abcabcabcbac",
    "full_name" => "12313123",
    "phone" => "1231231313",
    "address" => "123",
    "user_name" => "123",
    "role" => "user",
];

$user = User::where("id", "=", "2")->update($data);
```

- xóa 1 bản ghi:

```
$user = User::where("id", "=", "21")->delete();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

1235d ago

### Community

Maintainers

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

---

Top Contributors

[![caovanson2121231267312](https://avatars.githubusercontent.com/u/71201798?v=4)](https://github.com/caovanson2121231267312 "caovanson2121231267312 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[mukadi/wordpress-bundle

Integrate wordpress and symfony in the same application

212.8k1](/packages/mukadi-wordpress-bundle)

PHPackages © 2026

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