PHPackages                             lirui/php-tools - 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. lirui/php-tools

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

lirui/php-tools
===============

Common tools class in PHP development

01PHP

Since Mar 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lirui310/php-tools)[ Packagist](https://packagist.org/packages/lirui/php-tools)[ RSS](/packages/lirui-php-tools/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-tools
=========

[](#php-tools)

Common tools class in PHP development

如何安装
----

[](#如何安装)

`composer require lirui/php-tools`

如何使用
----

[](#如何使用)

`获取URL的schem \lirui\tools\UrlTools::getScheme();`

`获取当前URL完整地址 \lirui\tools\UrlTools::getCurrentURLAddress();`

`...`

如何使用test
--------

[](#如何使用test)

`直接下载进入根目录 php -S 127.0.0.1:8000`

`浏览器输入 http://127.0.0.1:8000/test/time_tools_test.php`

开发PHP版本
-------

[](#开发php版本)

`php >= 7.1.0`

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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/873f39c81d3b6a3d9d22532402d9f34c41ddda6b6c25570a9c187f047f87e1e6?d=identicon)[1950767658](/maintainers/1950767658)

### Embed Badge

![Health badge](/badges/lirui-php-tools/health.svg)

```
[![Health](https://phpackages.com/badges/lirui-php-tools/health.svg)](https://phpackages.com/packages/lirui-php-tools)
```

###  Alternatives

[skywarth/chaotic-schedule

Randomize scheduled command execution time and date intervals

12142.3k](/packages/skywarth-chaotic-schedule)[raoul2000/yii2-wizflow

The wizard UI pattern implemented using yii2-workfl

144.2k](/packages/raoul2000-yii2-wizflow)

PHPackages © 2026

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