PHPackages                             phpha/cocotech - 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. phpha/cocotech

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

phpha/cocotech
==============

COCOTECH PHP-SDK

05PHP

Since Jun 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/phpha/cocotech)[ Packagist](https://packagist.org/packages/phpha/cocotech)[ RSS](/packages/phpha-cocotech/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

COCOTECH PHP-SDK
================

[](#cocotech-php-sdk)

1、安装
----

[](#1安装)

```
composer require phpha/cocotech
```

2、使用
----

[](#2使用)

```
// 初始化
Cocotech\Kernel::init([
    // 测试环境
    'request_url' => 'https://test-api.cocotech.cn/',
    // 应用ID
    'app_id' => 'xxx',
    // 服务端公钥
    'public_key' => 'xxx',
    // 客户端私钥
    'private_key' => 'xxx',
    // 银行标识
    'bank_code' => 'pingan',
    // 账户类型
    'acct_type' => '2',
    // 外部请求流水号
    'out_request_id' => Cocotech\Services\Helper::uniqueId()
]);

// 调用接口
$result = Cocotech\Kernel::handle('v2/account/common/test', [
    'param1' => 'value1',
    'param2' => 'value2'
]);
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f15b8f1dd387e4299e3400c2c03a12514184d82fe6229cd7a5e52f33fc1ef971?d=identicon)[PHPHa](/maintainers/PHPHa)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/phpha-cocotech/health.svg)

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

###  Alternatives

[adbario/php-dot-notation

PHP dot notation access to arrays

4638.8M182](/packages/adbario-php-dot-notation)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[digital-creative/custom-relationship-field

Emulate HasMany relationship without having a real relationship set between resources

33200.0k](/packages/digital-creative-custom-relationship-field)[yethee/enum-bundle

This bundle provides a typed enumeration for Symfony applications

3188.4k](/packages/yethee-enum-bundle)

PHPackages © 2026

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