aryan-developer/zibal
最新稳定版本:1.0
Composer 安装命令:
composer require aryan-developer/zibal
包简介
a simple library for zibal
README 文档
README
use this library for download from SoundCloud Easily
Installation
Recommended way of installing this is via Composer:
composer require aryan-developer/zibal
Run locally:
php -S localhost:8000
Usage
Request
<?php use Aryandev\zibal\Zibal; use Aryandev\zibal\ZibalException; require_once "./vendor/autoload.php"; $zibal = new Zibal("65xxxxxxx0d", "https://example.ir/verify.php"); try { $zibal->request(amount: 10000,redirect: true); } catch (ZibalException $e) { echo "<pre>{$e->getZibalMessage()}</pre>"; } ?>
Verify
<?php use Aryandev\zibal\Zibal; use Aryandev\zibal\ZibalException; require_once "./vendor/autoload.php"; if($_GET['success']==1) { $zibal = new Zibal("65a1498fc5d2cb001d8d540d", "https://example.ir/verify.php"); try { $response = $zibal->verify($_GET['trackId']); var_dump($response); } catch (ZibalException $e) { echo $e->getZibalResultCode(); } }else{ echo "پرداخت با شکست مواجه شد."; }
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-01-16