PHP Client Library
The Recurly PHP Client library is an open source library to interact with Recurly’s subscription management from your PHP website. The library interacts with Recurly’s REST API.
First, download the latest library and unzip it within your application. Next, require the
lib/recurly.php script and setup your authentication credentials:
<?php require_once('lib/recurly.php'); // Required for the API Recurly_Client::$subdomain = 'your-subdomain'; Recurly_Client::$apiKey = 'abcdef01234567890abcdef01234567890'; // Optional for Recurly.js: Recurly_js::$privateKey = '01234567890abcdef01234567890abcdef'; ?>
The PHP library requires PHP 5.3.0 or greater with libcurl compiled with OpenSSL support. Open up a
phpinfo(); page and verify that under the curl section, there’s a line that says something like:
libcurl/7.19.5 OpenSSL/0.9.8g zlib/220.127.116.11 libidn/1.15
Recurly API Google Group
Looking for help? Join our Recurly API Google Group to ask questions and share ideas with the Recurly API community.