invoiced/oauth1-xero

Xero OAuth 1.0 Client Provider for The PHP League OAuth1-Client

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

👁 Jaredtking

Package info

github.com/Invoiced/oauth1-xero

Issues

pkg:composer/invoiced/oauth1-xero

Statistics

Installs: 7 061

Dependents: 0

Suggesters: 1

Stars: 7

2.0 2018-04-29 19:10 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT dfa6b5b0b534ee0ea39e27495ee6d302cc3e7daa

authorizationclientoauthoauth1authorisationxero

This package is auto-updated.

Last update: 2024-12-20 13:54:55 UTC


README

👁 Latest Stable Version
👁 Software License
👁 Build Status
👁 Coverage Status
👁 Scrutinizer Code Quality
👁 Total Downloads

This package provides Xero OAuth 1.0 support for the PHP League's OAuth 1.0 Client.

Installation

To install, use composer:

composer require invoiced/oauth1-xero

Usage

Usage is the same as The League's OAuth client, using Invoiced\OAuth1\Client\Server\Xero as the provider.

Public API

Follows Xero Public Applications.

$server = new Invoiced\OAuth1\Client\Server\Xero([
 'identifier' => 'your-identifier',
 'secret' => 'your-secret',
 'callback_uri' => 'https://your-callback-uri/',
 'partner' => false,
]);

Private API

Follows Xero Private Applications.

$server = new Invoiced\OAuth1\Client\Server\Xero([
 'identifier' => 'your-identifier',
 'secret' => 'your-secret',
 'callback_uri' => 'https://your-callback-uri/',
 'rsa_private_key' => '/path/private.pem',
 'rsa_public_key' => '/path/public.pem',
]);

Partner API

Follows Xero Partner Applications.

$server = new Invoiced\OAuth1\Client\Server\Xero([
 'identifier' => 'your-identifier',
 'secret' => 'your-secret',
 'callback_uri' => 'https://your-callback-uri/',
 'rsa_private_key' => '/path/private.pem',
 'rsa_public_key' => '/path/public.pem',
]);