PHPackages                             cube-group/phpbase - 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. cube-group/phpbase

ActiveLibrary

cube-group/phpbase
==================

phpbase

v1.2.0(7y ago)12.9k↓100%1MITPHPPHP &gt;=5.6

Since Mar 12Pushed 7y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (11)Versions (14)Used By (0)

PHP开发工具包
========

[](#php开发工具包)

### PHP版本要求

[](#php版本要求)

- 大于等于 PHP5.6

### 适用PHP框架

[](#适用php框架)

- Yaf、YII2、Laravel

### 相关pecl

[](#相关pecl)

- curl(5.6自带)
- pdo\_mysql(5.6自带)
- gd(5.6自带)
- redis(pecl)
- mongo(pecl)
- memcached(pecl)
- amqp(pecl)

### 安装扩展

[](#安装扩展)

Mac OS X,推荐homebrew进行安装,举例如下:

```
brew install php56-redis

```

CentOS 6或7,推荐yum进行安装,举例如下:

```
yum -y install php-redis php-mongo

```

Linux下编译安装,以安装rabbitMQ扩展为例如下:

```
wget http://pecl.php.net/get/amqp-1.6.1.tgz
tar zxvf amqp-1.6.1.tgz
cd amqp-1.6.1
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp --with-librabbitmq-dir=/usr/local/rabbitmq-c
make
make install

```

### 基础类库目录src

[](#基础类库目录src)

- Auth-基础验证器
- Cache-实现了redis(memcached)缓存操作
- Cdn-实现了文件upload/move/copy/del操作
- Crypt-字符串加解密
- Curl-实现了http的get和post请求
- File-实现了部分文件处理、文件上传、Excel处理、Pdf处理
- Image-实现了图片基础操作和验证码功能
- Log-实现了简单的本地日志功能
- Mail-实现了邮件发送和统一邮件发送功能
- Mongo-对于mongodb的简单封装
- Orm-对PDO进行了封装实现了orm功能
- Qrcode-二维码工具类库
- Queue-依靠Redis或RabbitMQ封装的队列
- Session-支持本地LSession和LRedisSession
- Utils-工具类

### autoload.php的使用

[](#autoloadphp的使用)

```
use libs\Curl\LCurl;
require __DIR__ . '/../src/autoload.php';
$curl = new LCurl();
$result = $curl->post('http://www.baidu.com/', ['a'=>'123']);

```

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~10 days

Recently: every ~27 days

Total

13

Last Release

2809d ago

Major Versions

v0.1.2 → v1.1.12018-03-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/93e719d708d4a6cc9f172360f51ca9ebf51e4fdb1461cd3a261cc1c3ff9dea27?d=identicon)[LincolnBruce](/maintainers/LincolnBruce)

---

Top Contributors

[![LincolnBruce](https://avatars.githubusercontent.com/u/7814560?v=4)](https://github.com/LincolnBruce "LincolnBruce (25 commits)")

---

Tags

base

### Embed Badge

![Health badge](/badges/cube-group-phpbase/health.svg)

```
[![Health](https://phpackages.com/badges/cube-group-phpbase/health.svg)](https://phpackages.com/packages/cube-group-phpbase)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.5k3.5M2.3k](/packages/craftcms-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.3M190](/packages/backpack-crud)[kartik-v/yii2-krajee-base

Base library and foundation components for all Yii2 Krajee extensions.

7111.4M101](/packages/kartik-v-yii2-krajee-base)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5270.4k28](/packages/ionux-phactor)[mnastalski/baselinker-php

Base.com (formerly BaseLinker) PHP library

1427.6k](/packages/mnastalski-baselinker-php)[cryptapi/php-cryptapi

CryptAPI's PHP library

2210.9k](/packages/cryptapi-php-cryptapi)

PHPackages © 2026

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