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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cube-group/phpbase

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

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

phpbase

v1.2.0(7y ago)12.9k1MITPHPPHP &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 2w 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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

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

2902d ago

Major Versions

v0.1.2 → v1.1.12018-03-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7814560?v=4)[linyang](/maintainers/LincolnBruce)[@LincolnBruce](https://github.com/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.9k](/packages/craftcms-cms)[civicrm/civicrm-core

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

749284.3k35](/packages/civicrm-civicrm-core)[kimai/kimai

Kimai - Time Tracking

4.7k8.7k1](/packages/kimai-kimai)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1715.6k12](/packages/2lenet-crudit-bundle)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1111.2k](/packages/abydahana-aksara)

PHPackages © 2026

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