Skip to content

Xendit REST API Client for PHP - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, xenPlatforms

License

Notifications You must be signed in to change notification settings

xendit/xendit-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
xendit-devx-bot
Feb 17, 2025
aeff09e · Feb 17, 2025
Aug 15, 2024
Aug 1, 2024
Feb 17, 2025
Nov 6, 2023
Feb 17, 2025
Nov 16, 2023
Sep 20, 2023
Sep 20, 2023
Sep 20, 2023
Jan 30, 2025
Feb 17, 2025
Feb 17, 2025
Nov 29, 2023

Repository files navigation

Xendit PHP SDK

Xendit PHP SDK

The official Xendit PHP SDK provides a simple and convenient way to call Xendit's REST API in applications written in PHP.

  • Package version: 6.2.0

Getting Started

Installation

Requirements

PHP 7.4 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/xendit/xendit-php.git"
    }
  ],
  "require": {
    "xendit/xendit-php": "6.2.0"
  }
}

Then run composer install

Autoloading

Download the files and include autoload.php:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

Authorization

The SDK needs to be instantiated using your secret API key obtained from the Xendit Dashboard. You can sign up for a free Dashboard account here.

use Xendit\Configuration;

Configuration::setXenditKey('XENDIT_API_KEY');

Documentation

Find detailed API information and examples for each of our product’s by clicking the links below,

All URIs are relative to https://api.xendit.co. For more information about our API, please refer to https://developers.xendit.co/.

Further Reading