PHPackages                             windawake/tp-remote2model - 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. [API Development](/categories/api)
4. /
5. windawake/tp-remote2model

ActiveLibrary[API Development](/categories/api)

windawake/tp-remote2model
=========================

Convert remote API data into tp5 model

12PHP

Since Sep 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/windawake/tp-remote-model)[ Packagist](https://packagist.org/packages/windawake/tp-remote2model)[ RSS](/packages/windawake-tp-remote2model/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

tp-remote-model
===============

[](#tp-remote-model)

- thinkphp调用的model代码无需修改，可以直接实现服务化。
- 原理是将远程api接口，转为tp5 model，兼容80%以上的model方法。
- 目前仅支持tp5.0，tp5.1。

快速预览
====

[](#快速预览)

### composer require windawake/tp-remote2model:dev-main

[](#composer-require-windawaketp-remote2modeldev-main)

### 安装phpunit，把phpunit.xml复制到项目根目录下

[](#安装phpunit把phpunitxml复制到项目根目录下)

### cd windawake/tp-remote2model/examples/website &amp;&amp; php run.php

[](#cd-windawaketp-remote2modelexampleswebsite--php-runphp)

### 在项目根目录下，执行单元测试

[](#在项目根目录下执行单元测试)

- ./vendor/bin/phpunit --filter=testFind
- ./vendor/bin/phpunit --filter=testWhereIn
- ./vendor/bin/phpunit --filter=testWith
- ./vendor/bin/phpunit --filter=testUpdate

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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/2712cf27d61ea655277f23deabc8245103e03555c74990f2889899ecc2e60890?d=identicon)[fengjuexing](/maintainers/fengjuexing)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/windawake-tp-remote2model/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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