PHPackages                             lmh/cpcn - 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. lmh/cpcn

ActiveLibrary[Payment Processing](/categories/payments)

lmh/cpcn
========

中金支付PHP SDK

2.4.3(3y ago)3113[1 issues](https://github.com/lmhfq/cpcn/issues)PHPPHP &gt;=7.1

Since Jun 9Pushed 3y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (6)Versions (10)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

24

—

LowBetter than 32% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Every ~84 days

Recently: every ~52 days

Total

9

Last Release

1130d ago

Major Versions

0.6.7 → 2.0.02022-02-15

PHP version history (2 changes)1.0.0PHP &gt;=7.2

0.6.7PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/32f77100f1ad701643a061f0ecbb40b0fb084bf0bb2c88cd73188edb81e0e8e1?d=identicon)[lmh](/maintainers/lmh)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[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)

PHPackages © 2026

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