PHPackages                             asokawotulo/openfabric-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/openfabric-php

ActiveLibrary[API Development](/categories/api)

asokawotulo/openfabric-php
==========================

OpenFabric PHP SDK

1.0.0(2y ago)050MITPHPPHP &gt;=8.0.0CI passing

Since May 31Pushed 2y ago1 watchersCompare

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

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

OpenFabric PHP Library
======================

[](#openfabric-php-library)

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

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

[](#table-of-contents)

- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
    - [Initialization](#initialization)
    - [Create Transaction](#create-transaction)
    - [Get Transaction](#get-transaction)

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

[](#installation)

```
composer require asokawotulo/cicil-php
```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
use OpenFabric\OpenFabric;
use OpenFabric\Authentication;

OpenFabric::setEnv(OpenFabric::PRODUCTION); // or OpenFabric::SANDBOX

OpenFabric::setClientId('xxxxxxxx');
OpenFabric::setClientSecret('xxxxxxxx');

OpenFabric::setAccessToken(Authentication::requestAccessToken()->access_token);
```

### Create Transaction

[](#create-transaction)

```
use OpenFabric\Transaction;

$transaction = Transaction::create([
	"partner_redirect_success_url" => "https://sample-merchant-flow.dev.openfabric.co?id=f0398e5-d045-441f-b130-bcd517964775&state=PAID",
	"partner_redirect_fail_url" => "https://sample-merchant-flow.dev.openfabric.co?id=f0398e5-d045-441f-b130-bcd517964775&state=CANCELLED",
	"customer_info" => [
		"first_name" => "BNPL",
		"last_name" => "Developer",
		"email" => "developer@bnpl1.com",
		"mobile_number" => "081234567890",
		"partner_reference_id" => "cd992711-498f-47be-b636-cf2e3eaad935"
	],
	"amount" => 1_000_000,
	"currency" => "IDR",
	"transaction_details" => [
		"shipping_address" => [
			"country" => "Indonesia",
			"country_code" => "ID",
			"address_line_1" => "Jl. R.A. Kartini No.Kav. 8",
			"address_line_2" => "",
			"address_line_3" => "",
			"post_code" => "12420"
		],
		"billing_address" => [
			"country" => "Indonesia",
			"country_code" => "ID",
			"address_line_1" => "Jl. R.A. Kartini No.Kav. 8",
			"address_line_2" => "",
			"address_line_3" => "",
			"post_code" => "12420"
		],
		"items" => [
			[
				"item_id" => "P100",
				"name" => "iPhone",
				"price" => 1_000_000,
				"quantity" => 1,
				"variation_name" => "Black, 128GB",
				"original_price" => 1_000_000,
				"categories" => [
					"Electronics"
				]
			],
		],
		"tax_amount" => 0,
		"shipping_amount" => 0,
		"original_amount" => 0
	]
]);
```

### Get Transaction

[](#get-transaction)

```
use OpenFabric\Transaction;

$transaction = Transaction::get('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

Unknown

Total

1

Last Release

764d ago

### 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 (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/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)
