Download the PHP package coinpay/php-integration without Composer

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

Coinpay

Safe, fast and instant payments; Anytime, anywhere with CoinPay.

This is CoinPay's official framework-agnostic PHP SDK — plain PHP, zero third-party dependencies (only ext-curl and ext-json). If you're on Laravel, use coinpay/laravel-integration instead.

Installation

Install with composer:

Requires PHP 7.4+ or 8.0+, with the curl and json extensions.

Creating a payment

Checking a payment's status

Verifying webhooks

CoinPay notifies your application asynchronously about payment status changes. Since this package targets plain PHP with no framework/router to pass you a parsed request, read the raw request body yourself with file_get_contents('php://input') and pull the relevant headers, then verify before trusting anything in the payload.

Two verification schemes exist:

Current: HMAC-SHA256 signature (X-Coinpay-Signature)

The request carries three headers — X-Coinpay-Signature: v1=<hex-hmac-sha256>, X-Coinpay-Timestamp: <unix-seconds>, and X-Coinpay-Delivery: <uuid> — and the signature covers "{timestamp}.{deliveryId}.{rawBody}". CoinPayWebhookVerifier::verify() recomputes the digest, compares it with hash_equals(), and rejects the request if the timestamp is more than 300 seconds old or in the future.

Legacy: static shared-secret header (SECRET) — deprecated

Older deliveries may still arrive with a plain SECRET header instead of a signature. This scheme is deprecated (no payload binding, no timestamp, no replay protection) but CoinPay still accepts it during the transition window, so a merchant that wants to keep working without gaps should check for it as a fallback when X-Coinpay-Signature is absent:

Prefer the HMAC path for any new integration; only fall back to the legacy path if you need to support deliveries that predate signature verification.

Exceptions

Every failure — a rejected API request or a network/timeout failure — is thrown as Coinpay\Finance\Exceptions\CoinPayException, which extends \Exception and additionally exposes:

Testing


All versions of php-integration with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0|^8.0
ext-curl Version *
ext-json Version *
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 coinpay/php-integration contains the following files

Loading the files please wait ...