PHPackages                             ryftpay/ryft-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ryftpay/ryft-php

ActiveLibrary[API Development](/categories/api)

ryftpay/ryft-php
================

RyftPay SDK for PHP

1.1.0(5mo ago)0942↓37.5%2[1 PRs](https://github.com/RyftPay/ryft-php/pulls)MITPHPPHP &gt;=7.1CI passing

Since Aug 9Pushed 5mo agoCompare

[ Source](https://github.com/RyftPay/ryft-php)[ Packagist](https://packagist.org/packages/ryftpay/ryft-php)[ Docs](https://github.com/ryftpay/ryft-php)[ RSS](/packages/ryftpay-ryft-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Ryft PHP
========

[](#ryft-php)

[![build](https://github.com/RyftPay/ryft-php/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/RyftPay/ryft-php/actions/workflows/build-and-test.yml)[![PHP version](https://camo.githubusercontent.com/4ff258b2990e1837716b6e333abccabd8535386ecbb9e98fdfedfff49567c6d5/68747470733a2f2f62616467652e667572792e696f2f70682f72796674706179253246727966742d7068702e737667)](https://badge.fury.io/ph/ryftpay%2Fryft-php)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Installation
------------

[](#installation)

```
# with composer
composer install ryftpay/ryft-php
```

Usage
-----

[](#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

[](#importing-the-sdk)

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

```
