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(7mo ago)130MITPHPPHP ^7.4|^8.0

Since Apr 2Pushed 7mo 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 1mo ago

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

34

—

LowBetter than 77% of packages

Maintenance63

Regular maintenance activity

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8f1fc6a370959c3596ba85bc156e112e33325736ccdf16d76526791cbecaaf2?d=identicon)[bojanvmk](/maintainers/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

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

10710.0k](/packages/neuron-core-neuron-laravel)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)

PHPackages © 2026

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