PHPackages                             jybtx/cybersource - 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. jybtx/cybersource

ActiveLibrary

jybtx/cybersource
=================

CyberSource PHP SOAP client

0335PHP

Since Jun 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jybtx/cybersource)[ Packagist](https://packagist.org/packages/jybtx/cybersource)[ RSS](/packages/jybtx-cybersource/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 cybersource
=============

[](#-cybersource-)

 CyberSource PHP SOAP client.

Installing
----------

[](#installing)

```
$ composer require jybtx/cybersource -vvv
```

Usage
-----

[](#usage)

```
use CyberSource;

$request = CyberSource::createRequest();
// 银行卡信息
$card = new stdClass();
$card->accountNumber = '4622 9431 2701 3705';
$card->expirationMonth = '12';
$card->expirationYear = '22';
$request->card = $card;

$ccAuthService = new stdClass();
$ccAuthService->run = 'true';
$request->ccAuthService = $ccAuthService;

$ccCaptureService = new stdClass();
$ccCaptureService->run = 'true';
$request->ccCaptureService = $ccCaptureService;

// 个人信息
$billTo = new stdClass();
$billTo->firstName = 'first name';
$billTo->lastName = 'last name';
$billTo->street1 = '1295 Charleston Road';
$billTo->city = 'Mountain View';
$billTo->state = 'CA';
//        $billTo->postalCode = '838';
$billTo->country = 'CN';
$billTo->email = 'xx@xx.com';
$billTo->ipAddress = request()->ip();
$request->billTo = $billTo;
//
$purchaseTotals = new stdClass();
$purchaseTotals->currency = 'USD';
$purchaseTotals->grandTotalAmount = '0.1';
$request->purchaseTotals = $purchaseTotals;

$reply = CyberSource::runTransaction($request);
dd($reply);
```

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

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/jybtx/cybersource/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/jybtx/cybersource/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

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/f91de8e20b269e9f418e80dde9025e1a91170abca8f15bef679b0c8e9b9a7a18?d=identicon)[jybtx](/maintainers/jybtx)

### Embed Badge

![Health badge](/badges/jybtx-cybersource/health.svg)

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

PHPackages © 2026

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