PHPackages                             pxniu/study - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pxniu/study

ActiveProject[Utility &amp; Helpers](/categories/utility)

pxniu/study
===========

a test composer project

03PHP

Since May 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pxniu/study)[ Packagist](https://packagist.org/packages/pxniu/study)[ RSS](/packages/pxniu-study/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#php框架

使用方法
====

[](#使用方法)

1.Sql操作升级 采用方法注解实现 如：

@Select(sql = "select \* from user where username = {username}")

@Update(sql = "update user set price = price + {price} where id = {id}")

@Insert(sql = "insert into user (username, password, age, height, price, addtime) values ({username}, {password}, {age}, {height}, {price}, now())")

@Delete(sql = "delete from user where id = {id}")

@SelectOne(sql = "select \* from user where id = {id}")

@Update(sql = "update user set username = {username} where id = {id}")

参数通过{}注入

2.事物升级 采用方法注解实现 如:

```
/**
 * @Transactional
 * 事物service
 */
function updateUser()
{

}

```

3.数据操作注入升级 如:

```
class Index {
    /**
     * @Autowired(class = "\hyweb\service\Home\impl\UserServiceImpl")
     */
    private $service;

    /**
     * @Autowired(class = "\hyweb\service\Home\impl\PayServiceImpl")
     */
    private $payService;

    public function index() {
        echo Config::get("db.master", "host");
        p($this->payService->getAll());
    }
}

```

4.数据判断注入 如:

```
/**
 * @Select(sql = "select * from role where name like %{name}% order by addtime desc limit {start}, {limit}")
 */
public function getAllByExcemples() {

}

```

5.数据循环注入 如:

```
/**
 * @Insert(sql = "
    insert into roles (roleId, permissionId) values

        ({roleId}, #id#})

 ")
 */
public function adds() {

}

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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://avatars.githubusercontent.com/u/14012157?v=4)[pxniu](/maintainers/pxniu)[@pxniu](https://github.com/pxniu)

---

Top Contributors

[![996997](https://avatars.githubusercontent.com/u/49157310?v=4)](https://github.com/996997 "996997 (20 commits)")[![pxniu](https://avatars.githubusercontent.com/u/14012157?v=4)](https://github.com/pxniu "pxniu (2 commits)")

### Embed Badge

![Health badge](/badges/pxniu-study/health.svg)

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

###  Alternatives

[geeklabs/ci4-breadcrumbs

Breadcrumb navigation for CodeIgniter 4

2814.8k](/packages/geeklabs-ci4-breadcrumbs)

PHPackages © 2026

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