Download the PHP package zfr/zfr-tradegecko without Composer

On this page you can find all versions of the php package zfr/zfr-tradegecko. 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 zfr-tradegecko

ZfrTradeGecko

Latest Stable Version Build Status

ZfrTradeGecko is a modern PHP library based on Guzzle for TradeGecko.

Dependencies

Installation

Installation of ZfrTradeGecko is only officially supported using Composer:

Usage

ZfrTradeGecko provides a one-to-one mapping with API methods defined in TradeGecko doc.

You can easily create a client using the following code:

Then, you can simply do requests for supported endpoints:

Using a container

ZfrTradeGecko also provides built-in container-interop factories that you can use. You must make sure that your container contains a service called "config" that is an array with a key zfr_tradegecko containing the required config:

If you're using Zend\ServiceManager 3, you can use Zend\ComponentInstaller to register our factories into Zend\ServiceManager automatically.

However if you're using other framework or other container, you can still manually register our factories, they are under src/Container folder.

Exploiting responses

ZfrTradeGecko returns TradeGecko response directly. However, by default, TradeGecko wrap the responses by a top-key. For instance, if you want to retrieve account information, TradeGecko will return this payload:

This is a bit inconvenient to use as we would need to do that:

Instead, ZfrTradeGecko automatically "unwraps" response, so you can use the more concise code:

When reading TradeGecko API doc, make sure you remove the top key when exploiting responses.

Implemented endpoints

Here is a list of supported endpoints (more to come in the future). Please note that some resources are not officially supported yet. They have been tested and are working as of 17th January 2017, but it's basically "use at your own risk".

ACCOUNT RELATED METHODS:

ADDRESS RELATED METHODS:

COMPANIES RELATED METHODS:

CONTACT RELATED METHODS:

CURRENCY RELATED METHODS:

FULFILLMENT RELATED METHODS:

FULFILLMENT LINE ITEM RELATED METHODS:

IMAGE RELATED METHODS:

INVOICE RELATED METHODS:

INVOICE LINE ITEM RELATED METHODS:

LOCATION RELATED METHODS:

NOTES RELATED METHODS:

ORDER RELATED METHODS:

ORDER LINE ITEMS RELATED METHODS:

PAYMENT TERM RELATED METHODS:

PRICE LIST RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

PRODUCT RELATED METHODS:

PROCUREMENT RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

PURCHASE ORDER RELATED METHODS:

PURCHASE ORDER LINE ITEM RELATED METHODS:

STOCK ADJUSTMENT RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

STOCK ADJUSTMENT LINE ITEM RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

STOCK TRANSFER RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

STOCK TRANSFER LINE ITEM RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

TAX COMPONENT RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

TAX TYPE RELATED METHODS:

USER RELATED METHODS:

VARIANT RELATED METHODS:

WEBHOOK RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):

PAYMENT RELATED METHODS (NOT OFFICIALLY SUPPORTED YET):


All versions of zfr-tradegecko with dependencies

PHP Build Version
Package Version
Requires php Version ~7.0
container-interop/container-interop Version ^1.1
guzzlehttp/guzzle-services Version ^1.1
psr/http-message Version ^1.0
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 zfr/zfr-tradegecko contains the following files

Loading the files please wait ....