xendit / xendit-php-clients
6.0.0
2024-08-15 06:16 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
- vlucas/phpdotenv: ^5.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
- dev-master
- 6.0.0
- 5.0.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.7.0
- 3.6.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 3.0.0-beta.2
- 3.0.0-beta.0
- 2.19.0
- 2.17.1
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.1
- 2.9.0
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.0.2
- 2.0.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-atlantis-config-xendit-php-mass-pr
- dev-test/add_api_test
- dev-release/v3-beta
- dev-fix/updateXenditVersionAtPHPLevel
- dev-fix/addParamsExpireInvoice
- dev-feat/addParamsForRetrieveAndRetrieveAll
- dev-feature/for-user-id-update-readme
- dev-feat/addMissingApiEwallet
- dev-feat/addMissingPayLaterApi
- dev-updateReadmeAndPayLaterExample
- dev-fix/add-user-id_getBalance
- dev-fix/guzzleClientAcceptQueryParam
- dev-fix/composerlock
- dev-feat/allow-get-charge-for-user
- dev-fix/api-retrieve
- dev-fix-ovo-example
- dev-fix/get-http-cli
- dev-refactor/guzzle_client
This package is auto-updated.
Last update: 2024-08-15 06:19:54 UTC
README
Xendit PHP SDK
官方的 Xendit PHP SDK 提供了一种简单方便的方式,在 PHP 编写的应用程序中调用 Xendit 的 REST API。
- 包版本:6.0.0
入门
安装
要求
PHP 7.4 及以上。
Composer
要通过 Composer 安装绑定,请将以下内容添加到 composer.json
中
{ "repositories": [ { "type": "vcs", "url": "https://github.com/xendit/xendit-php.git" } ], "require": { "xendit/xendit-php": "6.0.0" } }
然后运行 composer install
自动加载
下载文件并包含 autoload.php
<?php require_once(__DIR__ . '/vendor/autoload.php');
授权
SDK 需要使用从 Xendit 控制台 获得的密钥实例化。您可以在 此处 注册免费的控制台账户。
use Xendit\Configuration; Configuration::setXenditKey('XENDIT_API_KEY');
文档
点击以下链接,找到我们每个产品的详细 API 信息和示例,
所有 URI 都相对于 https://api.xendit.co。有关我们 API 的更多信息,请参阅 https://developers.xendit.co/。
进一步阅读