PHPackages                             ke/tp-orm - 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. ke/tp-orm

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

ke/tp-orm
=========

341PHP

Since Dec 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wdaglb/tp-orm)[ Packagist](https://packagist.org/packages/ke/tp-orm)[ RSS](/packages/ke-tp-orm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

tp-orm扩展包
---------

[](#tp-orm扩展包)

*可以使用tp6.x的动态绑定属性到父模型方法*

**安装**

`composer require ke/tp-orm dev-master`

**使用**

如果要使用此方法，则你的模型需要继承\\ke\\model\\Model。而不是\\think\\Model

可以使用动态绑定关联属性，可以使用

```
$user = User::find(1)->bindAttr('profile',['email','nickname']);
// 输出Profile关联模型的email属性
echo $user->email;
echo $user->nickname;

```

同样支持指定属性别名

```
$user = User::find(1)->bindAttr('profile',[
	'email',
    'truename'	=> 'nickname',
]);
// 输出Profile关联模型的email属性
echo $user->email;
echo $user->truename;

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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/e75ee598a8771c24bfee4989062d3efcd22c0f6886d1771c73e0b373d010c432?d=identicon)[wdaglb](/maintainers/wdaglb)

---

Top Contributors

[![wdaglb](https://avatars.githubusercontent.com/u/19158680?v=4)](https://github.com/wdaglb "wdaglb (8 commits)")

### Embed Badge

![Health badge](/badges/ke-tp-orm/health.svg)

```
[![Health](https://phpackages.com/badges/ke-tp-orm/health.svg)](https://phpackages.com/packages/ke-tp-orm)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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