PHPackages                             guoguo882010/thinkphp-version - 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. guoguo882010/thinkphp-version

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

guoguo882010/thinkphp-version
=============================

A simple tool to get ThinkPHP version

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

Since Aug 7Pushed 9mo agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

获取当前项目使用的 ThinkPHP 版本号
======================

[](#获取当前项目使用的-thinkphp-版本号)

可用于所有 ThinkPHP 版本。

原理
--

[](#原理)

从根目录中的 composer.lock 读取版本号。

安装
--

[](#安装)

```
composer require guoguo882010/thinkphp-version
```

使用
--

[](#使用)

```
use RSHDSDK\ThinkPHPVersion\ThinkPHPVersion;

ThinkPHPVersion::getVersion(); //输出：5.1.42
```

###  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

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

### Embed Badge

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

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

PHPackages © 2026

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