Download the PHP package cfxmarkets/php-exchange-sdk without Composer

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

CFX Markets Exchange SDK for PHP

A public PHP SDK library to access the CFX Markets exchange.

This library helps to facilitate interactions with the CFX Exchange through CFX's exchange REST api.

Usage

Instantiation

The CFX Exchange requires the use of an authenticated API key for all interactions. You should provide your API key and secret to the constructor, along with the API url you'd like to target (usually https://sandbox.apis.cfxtrading.com/exchange for testing and https://apis.cfxtrading.com/exchange for production).

Manipulating Objects

You'll probably primarily be interested in fetching, creating, updating, or deleting data objects. To do this, you'll use the peripheral object classes provided by this library, then send instructions to the server via the Client you instantiated along with (optionally) one of the resource objects you've created.

For example, here's how to get a list of assets from the server. This returns a ResourceCollection that contains Asset resources:

Here's an example of how you might create an order:


All versions of php-exchange-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
psr/http-message Version ~1.0
cfxmarkets/php-persistence Version ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.6.0
cfxmarkets/php-public-models Version ^1.21.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 cfxmarkets/php-exchange-sdk contains the following files

Loading the files please wait ....