PHPackages                             kezhanwang/organize - 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. kezhanwang/organize

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

kezhanwang/organize
===================

kezhanwang.cn for organize SDk

1.2.0.x-dev(8y ago)010MITPHPPHP &gt;=5.3.0

Since Sep 5Pushed 8y ago2 watchersCompare

[ Source](https://github.com/kezhanwang/organize)[ Packagist](https://packagist.org/packages/kezhanwang/organize)[ Docs](https://github.com/kezhanwang/organize)[ RSS](/packages/kezhanwang-organize/feed)WikiDiscussions master Synced today

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

kezhanwang.cn Organize API PHP Client
=====================================

[](#kezhanwangcn-organize-api-php-client)

这是 Kezhan Organize API 的 PHP 版本封装开发包，是由ke课栈网官方提供的，一般支持最新的 API 功能。

> 支持的 PHP 版本: 5.3.3 ～ 5.6.x, 7.0.x

Installation
------------

[](#installation)

#### 使用 Composer 安装

[](#使用-composer-安装)

- 在项目中的 `composer.json` 文件中添加 Organize 依赖：

```
"require": {
    "kezhanwang/organize": "dev-master"
}
```

- 执行 `$ php composer.phar install` 或 `$ composer install` 进行安装。

#### 直接下载源码安装

[](#直接下载源码安装)

> 直接下载源代码也是一种安装 SDK 的方法，不过因为有版本更新的维护问题，所以这种安装方式**十分不推荐**，但由于种种原因导致无法使用 Composer，所以我们也提供了这种情况下的备选方案。

- 下载源代码包，解压到项目中
- 在项目中引入 autoload：

```
require 'path_to_sdk/autoload.php';
```

#### 初始化

[](#初始化)

```
use Organize\Client as Organize;
...
...

    $client = new Organize($merchant, $signature, $data, $rsaPublicFile);

...
```

OR

```
$client = new \Organize\Client($merchant, $signature, $data, $rsaPublicFile);
```

#### 简单推送

[](#简单推送)

```
$client->push()
    ->setProduction()
    ->send();
```

#### 异常处理

[](#异常处理)

```
$pusher = $client->push();
$pusher->setProduction();
try {
    $pusher->send();
} catch (\Organize\Exceptions\OrganizeExceptions $e) {
    // try something else here
    print $e;
}
```

Testing
-------

[](#testing)

```
# 编辑 tests/bootstrap.php 文件，填入必须的变量值
# OR 设置相应的环境变量

# 运行全部测试用例
$ composer tests

# 运行某一具体测试用例
$ composer tests/Organize/xxTest.php
```

Contributing
------------

[](#contributing)

Bug reports and pull requests are welcome on GitHub at

License
-------

[](#license)

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

3171d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66645bd3d1664d5586eb3425d1a02f7b77cf4e2f12a71208872ca02605fc9739?d=identicon)[kezhanwang](/maintainers/kezhanwang)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kezhanwang-organize/health.svg)

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

PHPackages © 2026

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