PHPackages                             crabstudio/baokim - 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. [Search &amp; Filtering](/categories/search)
4. /
5. crabstudio/baokim

ActiveCakephp-plugin[Search &amp; Filtering](/categories/search)

crabstudio/baokim
=================

BaoKim payment gateway plugin for CakePHP 3.x

1.0.2(10y ago)1511MITPHPPHP &gt;=5.4.16

Since Jan 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ctlabvn/bao-kim)[ Packagist](https://packagist.org/packages/crabstudio/baokim)[ Docs](https://github.com/crabstudio/bao-kim)[ RSS](/packages/crabstudio-baokim/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/033fb888e9028d520d1826d326470f6bdcdb79b10a37e2d4eb8b0261b5cec40b/68747470733a2f2f7472617669732d63692e6f72672f6372616273747564696f2f62616f2d6b696d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crabstudio/bao-kim) [![Latest Stable Version](https://camo.githubusercontent.com/b49189c4da9ef8f94138a2c12b923cabca1986b8d1a6e0ccb6a2d79a77395485/68747470733a2f2f706f7365722e707567782e6f72672f6372616273747564696f2f62616f6b696d2f76657273696f6e)](https://packagist.org/packages/crabstudio/baokim) [![Latest Unstable Version](https://camo.githubusercontent.com/337ce01d39887f96e3b9acae0fb0d9892c9e9e17edc5f74871b6fcc53bee2b9a/68747470733a2f2f706f7365722e707567782e6f72672f6372616273747564696f2f62616f6b696d2f762f756e737461626c65)](//packagist.org/packages/crabstudio/baokim) [![Total Downloads](https://camo.githubusercontent.com/19ae6f541fb704dda9572aa05c5969aebc60ee96789bc75bff2ea550feda4f9b/68747470733a2f2f706f7365722e707567782e6f72672f6372616273747564696f2f62616f6b696d2f646f776e6c6f616473)](https://packagist.org/packages/crabstudio/baokim)

CakePHP 3.x: BaoKim payment gateway plugin
==========================================

[](#cakephp-3x-baokim-payment-gateway-plugin)

\[Donate\] Buy me a cup of coffee [![paypal](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=25FMH28VCF8V2&lc=VN&item_name=FlatAdmin%20plugin%20CakePHP%203&item_number=flat_admin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require crabstudio/baokim

```

Or add the following lines to your application's **composer.json**:

```
"require": {
    "crabstudio/baokim": "^1.0"
}

```

followed by the command:

```
composer update

```

Load plugin
-----------

[](#load-plugin)

Add this line to **Your\_project\\config\\bootstrap.php**

```
Plugin::load('Crabstudio/BaoKim', ['bootstrap' => true]);

```

Or from command line:

```
bin/cake plugin load crabstudio/baokim

```

Configure
---------

[](#configure)

Write to your configure:

```
$baokim = [
    'BaoKim' => [
        'merchant_id' => 'your_merchant_id',
        'secure_pass' => 'your_secret',
        'business' => 'your_business_email@example.com'
    ]
];
Cake\Core\Configure::write($baokim);

```

Usage
-----

[](#usage)

Apply in your controller

```
public function checkout() {
	$this->loadComponent('Crabstudio/BaoKim.BaoKim');

	//your checkout logic here
	//$url_success route to checkoutSuccessfull function
	//$url_cancel route to checkoutCancel function

	$redirect_url = $this->BaoKim->createRequestUrl($order_id, $total_amount, $shipping_fee, $tax_fee, $order_description, $url_success, $url_cancel, $url_detail);
	return $this->redirect($redirect_url);
}

public function checkoutSuccessfull() {
	$this->request->allowMethod('get');
	$this->loadComponent('Crabstudio/BaoKim.BaoKim');
	$isValid = $this->BaoKim->verifyResponseUrl($this->request);
	if($isValid) {
		//Valid logic here
	}
	//Invalid logic here
}

public function checkoutCancel() {
	//Cancel logic here
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3759d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56a5ca3dd7da4364725978f40104a667c8fd9bf40664b9886bbd19e2325517ee?d=identicon)[anhtuank7c](/maintainers/anhtuank7c)

---

Top Contributors

[![anhtuank7c](https://avatars.githubusercontent.com/u/3163410?v=4)](https://github.com/anhtuank7c "anhtuank7c (2 commits)")

---

Tags

searchcakephp3payment gatewaycake3crabstudioanhtuank7cbaokim

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/crabstudio-baokim/health.svg)

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

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

5.3k178.3M941](/packages/elasticsearch-elasticsearch)[ruflin/elastica

Elasticsearch Client

2.3k50.4M202](/packages/ruflin-elastica)[solarium/solarium

PHP Solr client

93532.7M97](/packages/solarium-solarium)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M64](/packages/opensearch-project-opensearch-php)[friendsofcake/search

CakePHP Search plugin using PRG pattern

1742.0M37](/packages/friendsofcake-search)[skie/cakephp-search

CakePHP Plum Search plugin

19186.5k2](/packages/skie-cakephp-search)

PHPackages © 2026

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