PHPackages                             zhangwen/ut-plugin-php - 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. zhangwen/ut-plugin-php

ActiveLibrary

zhangwen/ut-plugin-php
======================

ut plugin for php

v1.0.5(3y ago)0931MITPHPPHP &gt;=7.1

Since Mar 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/httek/ut-plugin-php)[ Packagist](https://packagist.org/packages/zhangwen/ut-plugin-php)[ RSS](/packages/zhangwen-ut-plugin-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

zw-ut-plugin-php
================

[](#zw-ut-plugin-php)

用户标签SQL生成器

安装
--

[](#安装)

```
composer require zhangwen/ut-plugin-php

```

用法
--

[](#用法)

```
use Zw\Plugin\Ut\SqlBuilder;

$builder = new SqlBuilder();

$meta = [
   'field' => 'sex',
   'calc' => 'in',
   'value' => [1],
];

$ruleClass = $builder->getClassFromField($meta['field'] ?? '');
$builder->addRule(new $class($meta), $valid = true);
$sql = $builder
    ->setClickHouseMode()
    // ->setMySqlMode()
    ->toSql();

echo $sql, PHP_EOL;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

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

Every ~27 days

Recently: every ~34 days

Total

6

Last Release

1377d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dc5629a99fbdd8e5c3045396fb825bd7bd1efa74e9b7ee1302209ff130b4a74?d=identicon)[httek](/maintainers/httek)

---

Top Contributors

[![mio-next](https://avatars.githubusercontent.com/u/23288891?v=4)](https://github.com/mio-next "mio-next (9 commits)")

### Embed Badge

![Health badge](/badges/zhangwen-ut-plugin-php/health.svg)

```
[![Health](https://phpackages.com/badges/zhangwen-ut-plugin-php/health.svg)](https://phpackages.com/packages/zhangwen-ut-plugin-php)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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