Download the PHP package mradcliffe/xeroclient without Composer

On this page you can find all versions of the php package mradcliffe/xeroclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package xeroclient

Xero Client

xeroclient is a PHP library that extends Guzzle to provide integration with the Xero API. It is primarily used as an API layer for your own project. It supports connecting to the Accounting API, Payroll API and File API URLs as either a private, public or partner application although implementation and storage of OAuth1 configuration is up to the implementing software. xeroclient aims to abide by the following criteria in regard to Xero integration:

  1. Abides by the PSR-2 standard.
  2. Uses contemporary PHP libraries such as Guzzle.
  3. Is lightweight and pluggable into a variety of frameworks that do normalization and data modeling their own way.
  4. Is testable.

Ultimately it is up to the software that uses xeroclient to deal with serialization, data modeling, OAuth2 redirect work flow, and configuration or content management.

Build Status

Please see CONTRIBUTING for more information about contributing to this project including Code of Conduct, Accountability, and How to get started.

Dependencies

Usage

Request an access token from Xero API using OAuth2.

Create with a guzzle client from an authorization code (see above)

Create with a guzzle client with an access token

Create with a guzzle client with a refresh token

Access tokens expire after 30 minutes so you can create a new client with a stored refresh token too.

Use the client instance to make requests

Error handling

If the configured client does not have a valid Xero API URL or if an auth_token is not provided, then XeroRequestException is thrown as part of the Guzzle request.

Previously XeroClient would throw an exception on instantiation, but this is no longer the case. If the initialize method is used directly, XeroClient will probably fail for other reasons.

Use with a legacy OAuth1 application

Please see the 0.2 branch and versions < 0.3.0.

Xero Helper Trait

The XeroHelperTrait provides some useful methods to attach to your classes for dealing with various Xero API query parameters and headers.

License

Alternate libraries

Affiliation

This library is not affiliated with Xero Limited.


All versions of xeroclient with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
league/oauth2-client Version ^2
ext-json Version *
guzzlehttp/guzzle Version ^7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mradcliffe/xeroclient contains the following files

Loading the files please wait ....