2017 © Pedro Peláez
 

library zuora-rest

A PHP client for integrating with the Zuora API

image

mhrabovcin/zuora-rest

A PHP client for integrating with the Zuora API

  • Wednesday, July 13, 2016
  • by mhrabovcin
  • Repository
  • 2 Watchers
  • 4 Stars
  • 2,773 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 9 % Grown

The README.md

Zuora REST PHP Client

Build Status Coverage Status Total Downloads Latest Stable Version, (*1)

Simple Zuora REST API client., (*2)

Installation

Zuora REST PHP Client can be installed with Composer by adding it as a dependency to your project's composer.json file., (*3)

{
    "require": {
        "mhrabovcin/zuora-rest": "*"
    }
}

Please refer to Composer's documentation for more detailed installation and usage instructions., (*4)

Usage

To initialize client use following code:, (*5)

use \Zuora\Client;

$client = Client::factory(array(
    'username' => 'email@exmaple.com',
    'password' => 'secretpassword',
    // For production endpoint
    'endpoint' => 'https://api.zuora.com/rest'
));

Client has method for querying Zuora API, (*6)

$account = $client->getAccount('A0000001');
print $account->getAccountNumber() . "\n"; // A0000001
print $account->getBillToContact()->getFirstName() . "\n"; // John

$credit_cards = $cliennt->getCreditCards('A0000001');
$card = reset($credit_cards);
print $card->isDefaultPaymentMethod() . "\n";
print $card->getCardHolderInfo()->getCardHolderName() . "\n";

For developers

Refer to PHP Project Starter's documentation for the Apache Ant targets supported by this project., (*7)

TODO

  • Add lazy result loading

The Versions

13/07 2016