Download the PHP package mycoolpay/php-sdk without Composer

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

My-CoolPay PHP SDK

Latest version on Packagist Total downloads Licence PHP version Github stars Licence
My-CoolPay official SDK for PHP

Note

This PHP package let you easily integrate My-CoolPay Payment API to your application or your website. Before you start using this package, it's highly recommended to check resources below depending on your use case.

Table of contents

1. Requirements

This package requires: Required PHP version Extension CURL Extension JSON

2. Installation

2.1. Install Composer package

First of all, install Composer package from your CMD or your Terminal.

2.2. Initialize SDK object

Now you need to initialize the SDK object with your API keys.

Recommendations:

Logger constructor parameters:

See My-CoolPay PHP Logger

MyCoolPayClient constructor parameters:

Parameter Type Default Description
$public_key string Your API public key
$private_key string Your API private key
$logger ?LoggerInterface null Logger object
$debug boolean false true enables debug mode

3. Interact with API

3.1. Paylink

Method description:

Data description:

For full $data description check Paylink section in API Docs

3.2. Payin

Method description:

Data description:

For full $data description check Payin section in API Docs

3.3. OTP

Method description:

Data description:

For full $data description check OTP section in API Docs

3.4. Payout

Method description:

Data description:

For full $data description check Payout section in API Docs

3.5. Check status

Method description:

More information:

For more information check Status section in API Docs

3.6. Get balance

Method description:

More information:

For more information check Balance section in API Docs

4. Security helpers

4.1. IP verification

Method description:

More information:

For more information check Security section in API Docs

4.2. Callback request integrity

Method description:

More information:

For more information check Security section in API Docs

More assistance

ℹ️ If you need further information or assistance, our teams are available at [email protected]. You can also get help from the developer community 💬

Contributors


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-curl Version *
ext-json Version *
mycoolpay/php-rest-client Version ^1.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 mycoolpay/php-sdk contains the following files

Loading the files please wait ....