alal/alal-sdk
Composer 安装命令:
composer require alal/alal-sdk
包简介
Official PHP SDK to interact with Alal's API
README 文档
README
A PHP sdk to interact with Alal's API
Installation
With Composer
composer require alal/alal-sdk
REQUIREMENTS
- PHP 8.0+
Usage
Authentication
Generate an API KEY from the Alal dashboard
Setup
<?php include "vendor/autoload.php"; use Alal\Client\Options; use Alal\Client\AlalSdk; $env = 'production'; or // sandbox $apikey = 'sk.8fcdc.a23474b7d2612534df'; $options = new Options($env); $AlalSdk = new AlalSdk($apikey, $options);
Example
$showCard = $AlalSdk->cards()->showCard('792c6cf2-f5cf-46c8-bf8c-699a9028010e'); $createCard = $AlalSdk->cards()->createCard('visa', 'virtual', 'd282e4a6-1fb6-4827-a6ae-a780263287d7')
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ALAL-Community/alal-node. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct. Simply create a new branch and raise a Pull Request, we would review and merge.
License
The library is available as open source under the terms of the MIT License
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-21