Download the PHP package cakephp-biztech/cakephp-xero-oauth2 without Composer

On this page you can find all versions of the php package cakephp-biztech/cakephp-xero-oauth2. 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 cakephp-xero-oauth2

Xero OAuth2 API plugin for CakePHP 3.x

This plugin provides access to Xero OAuth2 API for CakePHP. This plugin is wrapper around Xero PHP official SDK.

Requirements

Installation

  1. You can install this plugin into your CakePHP application using composer

  2. After installation, load the plugin

    Or, you can load the plugin using the shell command:

  3. Run plugin migration to create table

Setup

Now create new file to set your Xero App details.

  1. Create new file xero_config.php in config directory:

    Note: Do not forget to replace "https://example.com" with your website URL in your config/xero_config.php file.

  2. After creating the configuration file, make sure to load the file in your bootstrap.php:

Important:

When you create your Xero API App you must have to specify 'OAuth 2.0 redirect URI' to https://your-website.com/xero-oauth2/callback (replace "https://your-website.com" with your website URL).

Usage

This plugin ships with XeroOauth component which can be used to get the instance of:

Load XeroOauth component:

Once you have an instance of \XeroAPI\XeroPHP\Api\AccountingApi::class you're dealing directly with Xero's official SDK.

The Accounting API requires we pass through a tenant ID on each request. You can get value of that using Storage component. Also, you can get additional token details from this component as well.

Following examples shows how to get contacts from Accounting API:

src/Controller/ContactsController.php

You can also check XeroAPI Oauth2 App repository's example file.

Reference

Issues

Feel free to submit issues and enhancement requests.


All versions of cakephp-xero-oauth2 with dependencies

PHP Build Version
Package Version
Requires cakephp/cakephp Version ^3.5
xeroapi/xero-php-oauth2 Version ^2.1
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 cakephp-biztech/cakephp-xero-oauth2 contains the following files

Loading the files please wait ....