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 1mo ago

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 68% 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

2857d 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.6k3.6M2.6k](/packages/craftcms-cms)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)

PHPackages © 2026

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