PHPackages                             guoguo882010/thinkphp - 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. [Framework](/categories/framework)
4. /
5. guoguo882010/thinkphp

ActiveLibrary[Framework](/categories/framework)

guoguo882010/thinkphp
=====================

A helper library for ThinkPHP framework

1.0.0(11mo ago)00MITPHPPHP &gt;=7.1

Since Aug 8Pushed 11mo agoCompare

[ Source](https://github.com/guoguo882010/thinkphp)[ Packagist](https://packagist.org/packages/guoguo882010/thinkphp)[ RSS](/packages/guoguo882010-thinkphp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

获取当前项目使用的 ThinkPHP 相关信息
=======================

[](#获取当前项目使用的-thinkphp-相关信息)

可用于所有 ThinkPHP 版本。

原理
--

[](#原理)

从根目录中的 composer.lock 确定 thinkphp 相关信息。

安装
--

[](#安装)

```
composer require guoguo882010/thinkphp
```

使用
--

[](#使用)

```
use RSHDSDK\ThinkPHP\ThinkPHP;

//获取 tp 版本号，例：5.1.42
ThinkPHP::getThinkPHPVersion();

//获取 tp 根目录路径，
//linux返回：/www/tp5 （结尾没有/符号）
//windows返回：D:\www\tp5
ThinkPHP::getThinkPHPRootPath();

//tp 是否安装 true 安装 false 没安装
ThinkPHP::isThinkPHPInstalled();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance52

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

330d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b57028d0ae01c0a3e0a63cf818bff6b9d6ec8f8b92c506ac6a344d42e1dfea8?d=identicon)[gk](/maintainers/gk)

---

Top Contributors

[![guoguo882010](https://avatars.githubusercontent.com/u/3445260?v=4)](https://github.com/guoguo882010 "guoguo882010 (1 commits)")

### Embed Badge

![Health badge](/badges/guoguo882010-thinkphp/health.svg)

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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