ryftpay/ryft-php 问题修复 & 功能扩展

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

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

ryftpay/ryft-php

最新稳定版本:1.1.0

Composer 安装命令:

composer require ryftpay/ryft-php

包简介

RyftPay SDK for PHP

README 文档

README

build PHP version License: MIT

Installation

# with composer
composer install ryftpay/ryft-php

Usage

The SDK must be configured with your account's secret key, available in the Ryft Dashboard. The SDK will automatically determine the environment based on the provided key. For example, sk_sandbox... will point to sandbox, while sk_live will point to production.

Importing the SDK

You can access the SDK and all of the methods and types by importing it as follows:

<?php
use Ryft\Ryft;

Initialising with a secret key

You can pass your secret key via the Config in the SDK constructor. For example:

<?php
$ryft = new Ryft('sk_sandbox_);

Initialising with environment variables

You can set the following environment variable, and the SDK will automatically pick it up:

  • RYFT_SECRET_KEY

Note

If you use env variables you don't have to pass your secret key to the config. This is handled for you

Basic Example

<?php

use Ryft\Ryft;

$ryft = new Ryft('sk_sandbox_....');

$response = $ryft->accounts->list();

print_r($response);

统计信息

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

GitHub 信息

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

其他信息

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