Download the PHP package crypto-markets/common without Composer

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

Common

Latest Version on Packagist Build Status Quality Score StyleCI Total Downloads

Introduction

We are accepting new adapters.

Documentation

The "Common" package is without a function in its own right. The package keep and manage the common functionality for other market libraries.

Let's pick a random market package to figure out how to use it. I choose the Binance package for this. You are feel free to use what you want.

All market packages contains the same request and response to maintain consistency. Only the configuration and some parameter values may be different.

Let's start by creating a new instance:

In the above example, the Binance instance was created by configuring.

Supported Common Methods

In this section, we will explain the supported methods that the market instance:

Method Description
getName Get the market name.
symbols Get the supported symbols.
ticker Get the latest indicators.
orderBook Get a list of bids and asks in the order book (depth).
trades Get a list of the most recent trades.
balances Get the user's balance informations.
buy Create a new buy trade.
sell Create a new sell trade.
status Get the order status.
cancel Cancel an order.
openOrders Get the user's open orders.
tradeHistory Get the user's order histories.

Testing

You will need an install of Composer before continuing.

First, install the dependencies:

Then run PHPUnit:

If the test suite passes on your local machine you should be good to go.

When you make a pull request, the tests will automatically be run again by Travis CI.

We also have StyleCI setup to automatically fix any code style issues.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover any security related issues, please create a new issue with using the "Bug" label. All security vulnerabilities will be promptly addressed.

License

The MIT License (MIT). Please see License File for more information.


All versions of common with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
php-http/client-common Version ~1.6
php-http/discovery Version 1.3
php-http/guzzle6-adapter Version ~1.1
php-http/message Version ~1.6
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 crypto-markets/common contains the following files

Loading the files please wait ....