dazza76 / Laravel4-Zuora-library by dazza76

A Laravel 4 package for the PHPForce Zuora library
29
0
1
Package Data
Maintainer Username: dazza76
Maintainer Contact: darren_philips@hotmail.com (Darren Philips)
Package Create Date: 2014-03-27
Package Last Update: 2014-12-16
Language: PHP
License: Unknown
Last Refreshed: 2024-11-14 15:07:41
Package Statistics
Total Downloads: 29
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Laravel4-Zuora-library

Installation

Install this package through Composer. To your composer.json file, add:

"require-dev": {
	"Dazza76/Zuora": "dev-master"
}

Next, run composer update to download it.

add the service provider to app/config/app.php, within the providers array.

'providers' => array(
	// ...

	'Dazza76\Zuora\ZuoraServiceProvider'
)

Configuration

Run php artisan config:publish dazza76/zuora to publish the package config file. Run php artisan asset:publish dazza76/zuora to publish the public wsql file. Add your username, password and path to your file which can be obtained from your Zuora and select an endpoint to connect to

Config::set('zuora::connections.runtime', array(
			'wsdl' => 'zuora.a.54.0.wsdl',
                        'username' => '',
                        'password' => '',
                        //'endpoint' => 'https://www.zuora.com/apps/services/a/54.0'
                         'endpoint' => 'https://apisandbox.zuora.com/apps/services/a/54.0'
));

Accessing connections

You can access default Zuora connection via the Zuora::connection method:

Zuora::connection()->queryall(...);

When using multiple connections you can access each specific Zuora connection by passing connection name:

Zuora::connection('runtime')->queryall(...);

Basic usage examples

// With custom connection
$listing = Zuora::connection('my-Zuora-connection')->queryall(...);

// with default connection
$listing = Zuora::connection()->queryall(...);