PHPackages                             xtwoend/model - 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. xtwoend/model

ActiveLibrary

xtwoend/model
=============

Simple model for hyperf/database

052PHP

Since Mar 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xtwoend/model)[ Packagist](https://packagist.org/packages/xtwoend/model)[ RSS](/packages/xtwoend-model/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

simple model for hyperf nano
============================

[](#simple-model-for-hyperf-nano)

Installation
------------

[](#installation)

```
composer require xtwoend/model

```

Usage
-----

[](#usage)

```
use Xtwoend\Model\Model;

class User extends Model
{

}

```

Fitures
-------

[](#fitures)

1. Query Builder see
2. Sort
3. Global filter

### sort

[](#sort)

```
// ?sort[id]=1&sort[name]=0&q=lorem

$users = User::allowedSorts('id','name)->allowedSearch('name', 'email', 'contains')->panginate();

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/707e862eb8fddef4791639520cae4efdc10855859dcf3aa74c1bafa46c5bb575?d=identicon)[xtwoend](/maintainers/xtwoend)

---

Top Contributors

[![xtwoend](https://avatars.githubusercontent.com/u/1768785?v=4)](https://github.com/xtwoend "xtwoend (26 commits)")

### Embed Badge

![Health badge](/badges/xtwoend-model/health.svg)

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

PHPackages © 2026

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