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.

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?
coingate/coingate-php
Rate from 1 - 5
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.

Requirements

PHP 7.3.0 and later.

Composer

You can install library via Composer. Run the following command:

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the library, include the init.php file.

Dependencies

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.

Getting Started

You can sign up for a CoinGate account at https://coingate.com for production and https://sandbox.coingate.com for testing (sandbox).

Please note, that for Sandbox you must generate separate API credentials on https://sandbox.coingate.com. API credentials generated on https://coingate.com will not work for Sandbox mode.

Usage of CoinGate PHP library looks like:

In order, to use sandbox mode, you need to set second parameter to true.

If you plan to use Public API endpoints only, authentication is not required.

Example

An example of an app using this SDK can be found here

Payment Gateway API

Create Order

Create order at CoinGate and redirect shopper to invoice (payment_url).

Checkout

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.

Get Order

After creating an order, you will get an ORDER ID. This ID will be used for GET ORDER requests.

List Orders

Retrieving information of all placed orders.

Public API

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.

Ping

A health check endpoint for CoinGate API. This endpoint is public, authentication is not required.

IP Addresses

Get IP addresses of CoinGate servers

Currencies

Platforms

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 true.

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.


Version
Requires php Version >=7.3.0
ext-curl Version *
ext-json Version *

The package coingate/coingate-php contains the following files

Loading the files please wait ....