PHPackages                             wanren/basiclibrary.php - 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. wanren/basiclibrary.php

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

wanren/basiclibrary.php
=======================

WRJT's php basic class library.

3.2.x-dev(9mo ago)057Apache-2.0PHPPHP ^7.4.0

Since Sep 16Pushed 9mo agoCompare

[ Source](https://github.com/wanrengroup/BasicLibrary.PHP)[ Packagist](https://packagist.org/packages/wanren/basiclibrary.php)[ Docs](https://www.wanren.com/)[ RSS](/packages/wanren-basiclibraryphp/feed)WikiDiscussions V3.2 Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

说明
==

[](#说明)

项目介绍
----

[](#项目介绍)

1. 本项目是对PHP常用函数、类、扩展的封装，方便开发者使用。
2. 本项目已自动关联到PHP包管理仓库Packagist（ ），可以直接通过composer安装和更新。

版本说明
----

[](#版本说明)

- 本分支(V3.2)跟master分支，并行开发，互不合并，两个分支的代码除语法差异外，大部分功能相同。
- master分支应用于ThinkORM3.x/4.x + PHP8.0环境下，
- V3.2分支应用于ThinkPHTP3.2.x + PHP7.4环境下。

项目文件结构配置
--------

[](#项目文件结构配置)

- 本项目中使用的ThinkPHP目录，采用软连接的方式引入，而不是直接拷贝到项目目录下。具体操作：
    - 在命令行模式中，进入本项目的根目录，
    - 执行命令：`mklink /D "ThinkPHP" "/path/to/TP32project/ThinkPHP"`，例如： `mklink /D "ThinkPHP" "D:\HOME\OpenSource\ThinkPHP3.2\ThinkPHP"`
    - 然后在项目中使用`ThinkPHP`目录以及其目录下的类库、函数等即可。
    - 当向git提交代码时，只需要提交`ThinkPHP`目录（而不会提交整个ThinkPHP目录下的所有文件）即可。

安装与使用
-----

[](#安装与使用)

```
// 安装指定版本(支持环境ThinPHP3.2.x + PHP7.4)
composer require wanren/basiclibrary.php:3.2.x-dev

```

通过composer安装本项目后，会提示“你的项目目录\\vendor/wanren/basiclibrary.php/ThinkPHP/Library”这个文件或者目录不存在，这是正常现象，不影响使用，因为本项目使用的ThinkPHP目录是软连接过来的。 安装完成后，在代码中引入以下代码即可使用。

本项目更新的方式
--------

[](#本项目更新的方式)

项目代码修改后，提交到`Gitee`后，`Packagist`会检测并自动更新（如果没有自动更新，请按照`.nogit.readme.md`文件内的说明手动执行）。项目代码提交到github（`https://github.com/wanrengroup/BasicLibrary.PHP/` ）后，packagist会自动检测并更新。

第三方项目使用以下命令即可获得最新版本的功能：`composer update wanren/basiclibrary.php:3.2.x-dev`。

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance56

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity22

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

290d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/262693?v=4)[解大劦](/maintainers/notinmood)[@notinmood](https://github.com/notinmood)

---

Top Contributors

[![notinmood](https://avatars.githubusercontent.com/u/262693?v=4)](https://github.com/notinmood "notinmood (63 commits)")

---

Tags

phpcodecsbasic library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wanren-basiclibraryphp/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[lion/bundle

Lion-framework configuration and initialization package

122.3k4](/packages/lion-bundle)

PHPackages © 2026

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