Requirements

For security and support, we highly recommend you use PHP 8+.

  • PHP >= 8.0.0

Installation

Installing the SDK into your solution is usually done using Composer/Packagist.

To install via Composer/Packagist:

Composer

Add the following to your composer.json file:

{
    "require": {
        "globalpayments/php-sdk": "2.0.0"
    }
}


Inside the application directory, run composer (from the command line):

composer update OR (depending on your server configuration) php composer.phar update

Add a reference to the autoloader class anywhere you need to use the SDK:

require_once ('vendor/autoload.php');

GitHub

Download the the latest release of the SDK from GitHub.

Internal Title
XML (Ecommerce Only)
Show Content Nav
On
Tags
Subtitle
Integrate our PHP SDK into your project.