定制 aryan-developer/zibal 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-01-16