radeir/sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

radeir/sdk

最新稳定版本:1.3.0

Composer 安装命令:

composer require radeir/sdk

包简介

Rade SDK Seamlessly integrate secure and reliable banking services into your application.

README 文档

README

Introduction

This package provides the ability to use Rade Company's conversion and inquiry services for PHP and Laravel applications.

For organizational use, please contact our colleagues through the support panel or email.

Installation

Install via composer:

composer require radeir/sdk

Usage

Using in Plain PHP

<?php
use Radeir\Services\RadeServices;

// Configuration
$config = [
    'username' => 'your_username',
    'password' => 'your_password',
    'scopes' => ['scope1', 'scope2'],
    'baseUrl' => 'https://api.rade.ir/api'
];

// Create service instance
$radeServices = new RadeServices($config);

// Use services
try {
   // Documentation for each service is available in the Services section below
} catch (\Radeir\Exceptions\RadeException $e) {
    // Error handling
    echo "Error: " . $e->getMessage();
}

Using in Laravel

1. Publish the configuration file:

php artisan vendor:publish --provider="Radeir\Provider\RadeServiceProvider"

2. Set environment variables in .env file:

RADE_USERNAME=your_username
RADE_PASSWORD=your_password
RADE_SCOPES=scope1,scope2
RADE_BASE_URL=https://api.example.com

3. Using the Facade in Laravel:

<?php
use Radeir\Facade\Rade;

// Convert card number to IBAN
$ibanInfo = Rade::cardToIban('6037991234567890');

// Convert card number to deposit account
$depositInfo = Rade::cardToDeposit('6037991234567890');

// Documentation for each service is available in the Services section below

4. Using Dependency Injection:

<?php
use Radeir\Services\RadeServices;

class MyController
{
    public function index(RadeServices $radeServices)
    {
        // Documentation for each service is available in the Services section below
        $ibanInfo = $radeServices->cardToIban('6037991234567890');
        return response()->json($ibanInfo);
    }
}

Services

This package provides the following services:

For more information about token management and save, please refer to the Token Management Documentation.

Contributing

For information on how to contribute to this project, please refer to the Contribution Guide.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固