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(9mo ago)00MITPHPPHP &gt;=7.1

Since Aug 8Pushed 9mo agoCompare

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

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

24

—

LowBetter than 32% of packages

Maintenance57

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

284d 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/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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