PHPackages                             lokir/cpcn-sdk - 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. [Payment Processing](/categories/payments)
4. /
5. lokir/cpcn-sdk

ActiveLibrary[Payment Processing](/categories/payments)

lokir/cpcn-sdk
==============

中金支付PHP SDK

v1.1(1y ago)00PHPPHP &gt;=7.1

Since May 6Pushed 1y agoCompare

[ Source](https://github.com/lokir/cpcn)[ Packagist](https://packagist.org/packages/lokir/cpcn-sdk)[ RSS](/packages/lokir-cpcn-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

中金 中金支付PHP SDK
==============

[](#中金-中金支付php-sdk)

账服通
---

[](#账服通)

```
  $config = [
        'http' => [
            'timeout' => 30.0,
            'base_uri' => 'https://ctest.cpcn.com.cn/acswk/interfaceII.htm',
        ],
        'log' => [
            'name' => 'cpcn',
            'path' => __DIR__ . '/cpcn.log',
            'level' => 'debug',
        ],
        'ptnCode' => 'ZWYA2019',
        'bkCode' => 'ZBANK001',
        'keyContent' => 'keyContent',
        'certContent' => 'certContent',
        //'keystoreFilename' =>__DIR__ . '/../../config/ptntest.pfx',
        //'certificateFilename' => __DIR__ . '/../../config/pfdstest.cer',
  ];

  $trdClient = Factory::acs($config);
  $trdT1001Request = new TrdT1002Request();
  /**
   * @var TrdT1002Response $response
   */
  $response = $trdClient->execute($trdT1001Request, new TrdT1002Response());
  $this->assertEquals(ResponseCode::SUCCESS, $response->getMsghdRspcode(

```

壹企付
---

[](#壹企付)

```
  $config = [
        'http' => [
            'timeout' => 30.0,
            'base_uri' => 'https://ctest.cpcn.com.cn/acswk/interfaceII.htm',
        ],
        'log' => [
            'name' => 'cpcn',
            'path' => __DIR__ . '/cpcn.log',
            'level' => 'debug',
        ],
        'signerType' => 1,//1国密证书，2国际证书,
        'cfcaLogFilePath' => '/resource/cfcalog.conf'
        'institutionId' => '11111',
        //'keyContent' => 'keyContent',
        'certContent' => 'certContent',
        //'keystorePassword' => 'keystorePassword',
        //'keystoreFilename' =>__DIR__ . '/../../config/ptntest.pfx',
  ];

  $trdClient = Factory::ep($config);
  $request = new Tx5011Request();
  $request->setHasSubsequentSplit(1);
  /**
   * @var Tx5011Response $response
   */
  $response = $trdClient->execute($request, new Tx5011Response());
  $this->assertEquals(ResponseCode::SUCCESS, $response->getMsghdRspcode(

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance52

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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 ~0 days

Total

3

Last Release

368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02daddbb1180049057b5ceade78f057844b56c718b2c1397ab676af711ab5040?d=identicon)[jingqilong](/maintainers/jingqilong)

---

Top Contributors

[![lmhfq](https://avatars.githubusercontent.com/u/5369580?v=4)](https://github.com/lmhfq "lmhfq (6 commits)")[![jingqilong](https://avatars.githubusercontent.com/u/45377915?v=4)](https://github.com/jingqilong "jingqilong (5 commits)")[![oofyoofy](https://avatars.githubusercontent.com/u/77133062?v=4)](https://github.com/oofyoofy "oofyoofy (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lokir-cpcn-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/lokir-cpcn-sdk/health.svg)](https://phpackages.com/packages/lokir-cpcn-sdk)
```

###  Alternatives

[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[dnetix/redirection

Library to connect with PlacetoPay Checkout service

17123.3k2](/packages/dnetix-redirection)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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