PHPackages                             asokawotulo/jokul-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. [API Development](/categories/api)
4. /
5. asokawotulo/jokul-php

ActiveLibrary[API Development](/categories/api)

asokawotulo/jokul-php
=====================

PHP client for Jokul API

2.0.0(4y ago)0118MITPHPPHP &gt;=7.2.0

Since Nov 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/asokawotulo/jokul-php)[ Packagist](https://packagist.org/packages/asokawotulo/jokul-php)[ RSS](/packages/asokawotulo-jokul-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Jokul PHP Library
=================

[](#jokul-php-library)

This library is an abstraction of Jokul's API for applications written with PHP.

Table of Contents
-----------------

[](#table-of-contents)

- [Links](#links)
- [Installation](#installation)
- [Usage](#usage)
    - [Initialization](#initialization)
    - [Generate Signature](#generate-signature)
    - [Jokul Checkout](#jokul-checkout)

Links
-----

[](#links)

- [Main documentation](https://jokul.doku.com/docs)
- Dashboard
    - [Sandbox](https://jokul.doku.com/bo)
    - [Production](https://jokul.doku.com/bo)

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

[](#installation)

```
composer require asokawotulo/jokul-php
```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

Get the Client ID and Secret Key from [Business Account &gt; Service](https://jokul.doku.com/bo/business-account/service-management)

```
use Jokul\Jokul;

Jokul::setClientId('MCH-xxxx-xxxxxxxxxxxxx');
Jokul::setSecretKey('SK-xxxxxxxxxxxxxxxxxxxx');
Jokul::setEnv(Jokul::PRODUCTION); // or Jokul::SANDBOX
```

### Generate Signature

[](#generate-signature)

```
use Jokul\Jokul;
use Jokul\Utils;

$requestTarget = '/api/target';
$secretKey = Jokul::getSecretKey();
$clientId = Jokul::getClientId();
$requestId = Utils::generateRequestId();
$requestTimestamp = Utils::generateRequestTimestamp();

$signature = Utils::generateSignature(
	$secretKey,
	$clientId,
	$requestId,
	$requestTimestamp,
	$requestTarget,
);
```

### Jokul Checkout

[](#jokul-checkout)

```
$checkoutData = [
	'order' => [
		'amount' => 20000,
		'invoice_number' => 'INV-123',
	],
	'payment' => [
		'payment_due_date' => 60
	]
];

$response = \Jokul\Checkout::create($checkoutData);

echo $response['payment']['url'];
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1684d ago

Major Versions

1.0.0 → 2.0.02021-11-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32058490?v=4)[Asoka Wotulo](/maintainers/asokawotulo)[@asokawotulo](https://github.com/asokawotulo)

---

Top Contributors

[![asokawotulo](https://avatars.githubusercontent.com/u/32058490?v=4)](https://github.com/asokawotulo "asokawotulo (9 commits)")

---

Tags

jokulphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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