PHPackages                             pencepay/pencepay-php - 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. pencepay/pencepay-php

ActiveLibrary[Payment Processing](/categories/payments)

pencepay/pencepay-php
=====================

Pencepay PHP Library

v1.0.6(9y ago)229.5k1MITPHPPHP &gt;=5.4

Since Dec 5Pushed 8y ago2 watchersCompare

[ Source](https://github.com/pencepay/pencepay-php)[ Packagist](https://packagist.org/packages/pencepay/pencepay-php)[ RSS](/packages/pencepay-pencepay-php/feed)WikiDiscussions master Synced 1mo ago

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

Pencepay PHP Library
====================

[](#pencepay-php-library)

This is a server-side library for Pencepay gateway. You can [signup](https://pencepay.com) to Pencepay and then use this library to integrate.

Dependencies
------------

[](#dependencies)

PHP version &gt;= 5.4 is required.

The following PHP extensions are required:

- curl
- dom
- hash
- openssl

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

[](#installation)

You can install this library via [Composer](http://getcomposer.org), by adding this to your composer.json:

```
{
  "require": {
    "pencepay/pencepay-php": "1.*"
  }
}

```

To install, run the command:

```
composer.phar install

```

If you wish to use the library without Composer, you can install it manually

```
git clone https://github.com/pencepay/pencepay-php

```

Using the Pencepay Library
--------------------------

[](#using-the-pencepay-library)

If you are using Composer, include the Library in your project with:

```
require_once('vendor/autoload.php');

```

or if you are not using Composer, just require the library directly:

```
require_once('/path/to/pencepay-php/lib/Pencepay.php');

```

```
Pencepay_Context::setPublicKey("your-public-key");
Pencepay_Context::setSecretKey("your-secret-key");

$transaction = Pencepay_Transaction::create(
    Pencepay_Request_Transaction::build()
        ->orderId('123456')
        ->amount('10.99')
        ->currencyCode('EUR')
        ->creditCard()
            ->cardholderName('John Hancock')
            ->number('4350100010001002')
            ->cvv('313')
            ->expiryMonth(12)
            ->expiryYear(2016)
            ->done()
);

print_r($transaction);
```

Documentation
-------------

[](#documentation)

- See the [Full Library documentation](https://pencepay.com/docs)

License
-------

[](#license)

See the LICENSE file.

TODO
----

[](#todo)

Upload tests.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~145 days

Recently: every ~211 days

Total

7

Last Release

3309d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.2.1

v1.0.5PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/359ce43f7e36add56267f935eb746fc3097701b5a2c54ee25eb346bd8fae68e6?d=identicon)[pencepay](/maintainers/pencepay)

---

Top Contributors

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

---

Tags

payment-gatewaypayment-processingpayment processingpaymentscredit cards

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pencepay-pencepay-php/health.svg)

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

###  Alternatives

[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[paymentwall/paymentwall-php

Paymentwall PHP Library. Paymentwall is the leading digital payments platform for globally monetizing digital goods and services.

86797.2k5](/packages/paymentwall-paymentwall-php)

PHPackages © 2026

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