PHPackages                             bojanvmk/laravel-cpay - 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. [API Development](/categories/api)
4. /
5. bojanvmk/laravel-cpay

ActiveLibrary[API Development](/categories/api)

bojanvmk/laravel-cpay
=====================

cPay (CaSys) integration for Laravel

v0.2.4(9mo ago)130MITPHPPHP ^7.4|^8.0

Since Apr 2Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/bojanvmk/laravel-cpay)[ Packagist](https://packagist.org/packages/bojanvmk/laravel-cpay)[ Docs](https://github.com/bojanvmk/laravel-cpay)[ RSS](/packages/bojanvmk-laravel-cpay/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (10)Used By (0)

laravel-cpay
============

[](#laravel-cpay)

### Cpay (CaSys) integration for Laravel

[](#cpay-casys-integration-for-laravel)

This package can help you integrate with cpay more easily, it can handle all the specified cpay parameters, validation and checksums generation and verification.

This is just a helper class, you would still be required to create your own views/forms with your own design, and provide your own success/fail routes. You should be familiar with the "Cpay Merchant Integration Specification" document before using this package.

### Installation

[](#installation)

```
composer require bojanvmk/laravel-cpay

php artisan vendor:publish
```

Edit the cpay.php config file with your own values

### Basic usage:

[](#basic-usage)

```
use Bojanvmk\CPay\CPay;

$amount = 100;   // in the currency specified in the cpay.php config file
$orderId = 1325; // unique order/subscription id
$description = 'Some description here';

// It will automatically validate and generate all the needed parameters
// based on these 3 params and the config file
$cPay = new CPay($amount, $orderId, $description);

// set additional optional parameters
// see the Cpay.php class for all the other supported cpay parameters
// more details about them can be found in the official cpay docs
$cPay->setEmail('test@test.com')
      ->setRecurringPayment('1M')
      ...

// Get all the needed cpay params which should be included in your form (as hidden inputs)
$withChecksums = true;
$cPayParams = $cPay->getParameters($withChecksums);

// This package can also generate a ready html with these parameters as hidden inputs
$html = $cPay->renderHiddenInputs();
```

### Verify return checksum from cPay

[](#verify-return-checksum-from-cpay)

```
// Create a new instance from existing parameters
// you'll ideally keep a copy of the sent parameters in db for each payment
$cPay = CPay::initFromParameters($params);

// verify that the return checksum matches the original payment data
// note: $cPayPaymentRef is returned by cpay
if ($cPay->verifyReturnChecksum($cPayPaymentRef, $returnCheckSum)) {
    // we're good to go
}
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance58

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Recently: every ~318 days

Total

9

Last Release

278d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22980235?v=4)[Bojan Vasilevski](/maintainers/bojanvmk)[@bojanvmk](https://github.com/bojanvmk)

---

Top Contributors

[![bojanvmk](https://avatars.githubusercontent.com/u/22980235?v=4)](https://github.com/bojanvmk "bojanvmk (12 commits)")

---

Tags

laravelcasyscpaylaravel-cpay

### Embed Badge

![Health badge](/badges/bojanvmk-laravel-cpay/health.svg)

```
[![Health](https://phpackages.com/badges/bojanvmk-laravel-cpay/health.svg)](https://phpackages.com/packages/bojanvmk-laravel-cpay)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)

PHPackages © 2026

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