Download the PHP package rocketgate/sdk without Composer
On this page you can find all versions of the php package rocketgate/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sdk
Rocketgate Gateway PHP SDK
This library is compatible with PHP 8.0 or greater (refer to PHP Supported Versions here).
This library supports Composer and Namespaces and thus is NOT backwards compatible with our old (legacy) PHP sdks: https://github.com/rocketgate/rocketgate-php-legacy-sdk
Project structure
/examples - contains sample usages of the Gateway SDK for a variety of purchase scenarios to assist with your integration
/src - contains core implementation of the Gateway SDK
/tests - contains integration examples with Rocketgate Gateway that can be run with phpunit as an integration test suite
Installation using composer
Install with composer (available on packagist.org):
Installation without composer
Create a vendor folder (or use your project's external dependencies folder):
Clone into that folder
Add classes to your project autoloader or manually (as shown below).
Usage
Integration examples with Rocketgate Gateway are placed under /tests
folder.
Run full test suite (without RG docker container)
From Bash shell
Manually from sdk folder (/vendor/rocketgate/sdk)
Run individual tests
From sdk folder (/vendor/rocketgate/sdk)
Run individual example scripts
From examples folder (requires php executable on system $PATH)
Run full test suite (with RG docker container)
We recommend using both Docker and Docker Compose in order to run full test suite.
- Start docker container.
The command above might take longer at first execution because all PHP Docker container dependencies will be downloaded and installed.
- Run
startup.sh
script.
Important notes
- To run tests PHP >=8.0 is required.
- Startup script
startup.sh
installs composer PHP dependencies and run complete test suite. -
Output should look like this:
- Successful test represent a dot (".").
-
Failed test prints Rocketgate request data along with "F" character. Example:
- Any non-compliant Rocketgate modification made on source code SDK will make
::testComplianceModifications
fail, as shown below:
All versions of sdk with dependencies
ext-xml Version *
ext-curl Version *