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(1y ago)050MITPHPPHP &gt;=8.0.0CI passing

Since May 31Pushed 1y 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 1mo ago

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

25

—

LowBetter than 37% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

715d ago

### Community

Maintainers

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

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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