{"id":19615413,"url":"https://github.com/droath/recurlyclient","last_synced_at":"2025-02-26T17:44:56.288Z","repository":{"id":29173589,"uuid":"32704231","full_name":"droath/RecurlyClient","owner":"droath","description":"Recurly API PHP Library","archived":false,"fork":false,"pushed_at":"2015-04-03T16:24:09.000Z","size":184,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T10:36:19.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/droath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-23T01:13:38.000Z","updated_at":"2016-02-26T13:19:58.000Z","dependencies_parsed_at":"2022-08-17T20:05:10.699Z","dependency_job_id":null,"html_url":"https://github.com/droath/RecurlyClient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2FRecurlyClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2FRecurlyClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2FRecurlyClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/droath%2FRecurlyClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/droath","download_url":"https://codeload.github.com/droath/RecurlyClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240907398,"owners_count":19876686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T10:56:43.613Z","updated_at":"2025-02-26T17:44:56.269Z","avatar_url":"https://github.com/droath.png","language":"PHP","readme":"Recurly Client\n================\n\n[![Build Status](https://travis-ci.org/droath/RecurlyClient.svg?branch=master)](https://travis-ci.org/droath/RecurlyClient)\n\nThe Recurly Client library allows you to simply interact with the exposed RESTful API Services provided by [Recurly.com](https://recurly.com/).\n\nWe're using the PHP Guzzle library to construct the HTTP requests for the available Recurly web services. This will give us the opportunity to leverage Guzzle and its pluggable HTTP adapters. Hopefully it will make for a more feature rich experience when handling the Recurly web services.\n\n## Requirements\n\nThe PHP library depends on PHP 5.4 or higher.\n\n**NOTE:** Currently we don't support PHP:hhvm, due to HHVM not fully supporting the SimpleXMLIterator class.\n\n## Installation\n\n### Composer\n\nIf you're using [Composer](http://getcomposer.org/), you can simply add a dependency `droath/recurly_client` to your project's composer.json file. Here's a snippet of the composer.json.\n\n    {\n        \"require\": {\n            \"droath/recurly_client\": \"*\"\n        }\n    }\n\n## Usage\n\n### Configuration\nSet the Recurly API key and subdomain, which are defined within your [Recurly Account](https://app.recurly.com/login).\n\n```php\n\u003c?php\n\n$config = new \\RecurlyClient\\Config(\n    'abcdef01234567890abcdef01234567890',\n    'your-subdomain'\n);\n$client = new \\RecurlyClient\\Client($config);\n```\n### Service Manager\n\n#### Request types\nDisplay the available request types for a particular Recurly service.\n\n```php\n\u003c?php\n...\n\n$service = new \\RecurlyClient\\Service\\Account();\n$manager = new \\RecurlyClient\\ServiceManager($client, $service);\n\n$request_types = $manager-\u003egetRequestTypes();\n\nprint $request_types;\n\n```\n#### Invoke\nDisplay the Recurly response object based on the invoked request type action.\n\n```php\n\u003c?php\n...\n\n$service = new \\RecurlyClient\\Service\\Account();\n$manager = new \\RecurlyClient\\ServiceManager($client, $service);\n\ntry {\n    $response = $manager-\u003einvoke('list')-\u003eexecute();\n} catch (Exception $e) {\n    // Handle errors here\n}\n\nprint $response;\n```\n\n###  Response\n\n#### Extract\nSimply extract the data that was retrieved from the Recurly web service. The data can be extracted from the response in the following formats:  Array, JSON, or XML.\n\n```php\n\u003c?php\n...\n\ntry {\n    $response = $manager-\u003einvoke('list')-\u003eexecute();\n} catch (Exception $e) {\n    // Handle errors here\n}\n\n// Available formats are: array, json, xml.\n$data = $response-\u003egetData()-\u003eextract('array');\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroath%2Frecurlyclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroath%2Frecurlyclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroath%2Frecurlyclient/lists"}