Download the PHP package ndradev/okeconnect-php-client without Composer

On this page you can find all versions of the php package ndradev/okeconnect-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package okeconnect-php-client

OkeConnect PHP Client

Package PHP untuk integrasi API OkeConnect H2H dengan parsing lengkap untuk semua response.

Requirement: PHP 8.2 atau lebih baru

Developer: NdraDeveloper


Instalasi


Daftar Contoh Penggunaan

Tersedia 10 file contoh penggunaan lengkap di folder examples/:

File Deskripsi
01_transaction.php Transaksi pulsa/data (fixed denom)
02_transaction_open_denom.php Transaksi e-wallet (open denom/bebas nominal)
03_check_status.php Cek status transaksi
04_parse_webhook.php Parse webhook callback
05_get_price_list.php Ambil semua daftar harga
06_get_price.php Ambil harga satu produk
07_find_product_by_code.php Cari produk berdasarkan kode
08_find_product_by_category.php Cari produk berdasarkan kategori
09_find_product_by_keterangan.php Cari produk berdasarkan keterangan
10_find_product_by_status.php Cari produk berdasarkan status
webhook.php Handler webhook untuk callback

Cara Penggunaan

1. Inisialisasi Client

2. Menggunakan Helper Function


Fitur Transaksi

Transaksi Fixed Denom (Pulsa/Data)

Transaksi Open Denom (E-Wallet)


Cek Status Transaksi


Parse Webhook Callback


Price List dan Pencarian Produk

Ambil Semua Price List

Cari Produk Berdasarkan Kode

Cari Produk Berdasarkan Kategori

Cari Produk Berdasarkan Keterangan

Cari Produk Berdasarkan Status

Ambil Harga Produk


Helper Functions


Webhook Handler


Exception Handling

OkeConnectException Codes

Code Constant Keterangan
1001 MISSING_CREDENTIALS Kredensial tidak lengkap
1002 INVALID_PARAMETER Parameter tidak valid
1003 REQUEST_FAILED Gagal connect ke server
1004 PARSE_ERROR Gagal parse response
1005 TRANSACTION_FAILED Transaksi gagal
1006 INSUFFICIENT_BALANCE Saldo tidak cukup
1007 PRODUCT_NOT_FOUND Produk tidak ditemukan

Cara Menggunakan Exception


Validation

Ref ID Validation

Phone Number Validation

Qty Validation (Open Denom)


Response Models

TransactionResponse

Property Tipe Keterangan
transactionId string null ID Transaksi
refId string null ID Referensi
provider string null Provider
nominal string null Nominal
productCode string null Kode Produk
destination string null Nomor Tujuan
status string null Status
price float null Harga
time string null Waktu
serialNumber string null Serial Number
failureReason string null Alasan Gagal

Methods:


StatusCheckResponse

Property Tipe Keterangan
refId string null ID Referensi
provider string null Provider
nominal string null Nominal
productCode string null Kode Produk
destination string null Nomor Tujuan
transactionTime string null Waktu Transaksi
status string null Status
serialNumber string null Serial Number
price float null Harga
failureReason string null Alasan Gagal
transactionId string null ID Transaksi

Methods:


WebhookCallback

Property Tipe Keterangan
transactionId string null ID Transaksi
refId string null ID Referensi
provider string null Provider
nominal string null Nominal
productCode string null Kode Produk
destination string null Nomor Tujuan
status string null Status
serialNumber string null Serial Number
price float null Harga
date string null Tanggal
time string null Waktu
failureReason string null Alasan Gagal

Methods:


PriceListItem

Property Tipe Keterangan
code string Kode Produk
description string Deskripsi
product string Nama Produk
category string Kategori
price float Harga
status string Status (1=tersedia)

Methods:


Testing


Changelog

Lihat CHANGELOG.md untuk riwayat perubahan lengkap.


License

MIT License


Developer

NdraDeveloper


Support

Jika ada pertanyaan atau masalah, silakan buat issue di: https://github.com/NdraDev/okeconnect-php-client/issues


All versions of okeconnect-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ndradev/okeconnect-php-client contains the following files

Loading the files please wait ...