Download the PHP package coingate/coingate-php without Composer
On this page you can find all versions of the php package coingate/coingate-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Rated 5.00 based on 1 reviews
All versions of coingate-php with dependencies
Informations about the package coingate-php
CoinGate PHP library for API v2
The CoinGate PHP library provides convenient access to the CoinGate API from applications written in the PHP language.
PHP 7.3.0 and later.
You can install library via Composer. Run the following command:
If you do not wish to use Composer, you can download the latest release. Then, to use the library, include the
The library require the following extensions in order to work properly:
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.
Usage of CoinGate PHP library looks like:
In order, to use sandbox mode, you need to set second parameter to
If you plan to use Public API endpoints only, authentication is not required.
An example of an app using this SDK can be found here
Payment Gateway API
Create order at CoinGate and redirect shopper to invoice (payment_url).
Placing created order with pre-selected payment currency (BTC, LTC, ETH, etc). Display payment_address and pay_amount for shopper or redirect to payment_url. Can be used to white-label invoices.
After creating an order, you will get an ORDER ID. This ID will be used for GET ORDER requests.
Retrieving information of all placed orders.
Get Exchange Rate
Current exchange rate for any two currencies, fiat or crypto. This endpoint is public, authentication is not required.
List Exchange Rates
Current CoinGate exchange rates for Merchants and Traders. This endpoint is public, authentication is not required.
A health check endpoint for CoinGate API. This endpoint is public, authentication is not required.
Get IP addresses of CoinGate servers
Custom Request Timeout
To modify request timeouts (connect or total, in seconds) you'll need to tell the API client to use a CurlClient other than its default. You'll set the timeouts in that CurlClient.
Test API Connection
In order, to test API connection on sandbox mode, you need to set second parameter to
Attention plugin developers
Are you writing a plugin that integrates CoinGate and embeds our library? Then please use the setAppInfo function to identify your plugin. For example:
The method should be called once, before any request is sent to the API. The second parameter is optional.