ingenico-epayments / connect-sdk-php
PHP SDK to communicate with the Ingenico ePayments platform server-to-server API
Installs: 522 977
Dependents: 6
Suggesters: 0
Security: 0
Stars: 39
Watchers: 21
Forks: 16
Open Issues: 2
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- robtimus/multipart: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4
- dev-master
- 6.47.0
- 6.46.0
- 6.45.0
- 6.44.0
- 6.43.0
- 6.42.0
- 6.41.0
- 6.40.0
- 6.39.0
- 6.38.2
- 6.38.1
- 6.38.0
- 6.37.0
- 6.36.0
- 6.35.0
- 6.34.0
- 6.33.0
- 6.32.0
- 6.31.0
- 6.30.1
- 6.30.0
- 6.29.0
- 6.28.0
- 6.27.0
- 6.26.0
- 6.25.0
- 6.24.0
- 6.23.0
- 6.22.0
- 6.21.0
- 6.20.0
- 6.19.0
- 6.18.1
- 6.18.0
- 6.17.0
- 6.16.0
- 6.15.0
- 6.14.0
- 6.13.0
- 6.12.0
- 6.11.0
- 6.10.0
- 6.9.0
- 6.8.0
- 6.7.0
- 6.6.0
- 6.5.0
- 6.4.0
- 6.3.0
- 6.2.0
- 6.1.0
- 6.0.0
- 5.36.0
- 5.35.0
- 5.34.1
- 5.34.0
- 5.33.0
- 5.32.0
- 5.31.0
- 5.30.0
- 5.29.0
- 5.28.0
- 5.27.0
- 5.26.0
- 5.25.0
- 5.24.0
- 5.23.0
- 5.22.0
- 5.21.0
- 5.20.0
- 5.19.0
- 5.18.0
- 5.17.0
- 5.16.0
- 5.15.0
- 5.14.0
- 5.13.0
- 5.12.0
- 5.11.2
- 5.11.1
- 5.11.0
- 5.10.0
- 5.9.0
- 5.8.0
- 5.7.0
- 5.6.0
- 5.5.2
- 5.5.1
- 5.5.0
- 5.4.0
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.0
- 4.0.0
- 3.0.0
- 2.0.0
- 1.0.0
This package is auto-updated.
Last update: 2024-03-19 13:45:41 UTC
README
This SDK has been rebranded to Worldline. As part of the rebranding the SDK has moved to https://github.com/Worldline-Global-Collect/connect-sdk-php.
Introduction
The Ingenico Connect PHP SDK helps you to communicate with the Ingenico Connect Server API. Its primary features are:
- convenient PHP wrapper around the API calls and responses:
- marshalls PHP request objects to HTTP requests
- unmarshalls HTTP responses to PHP response objects or PHP exceptions
- handling of all the details concerning authentication
- handling of required meta data
Its use is demonstrated by an example for most calls. The examples execute a call using the provided API keys.
See the Ingenico Connect Developer Hub for more information on how to use the SDK.
Structure of this repository
This repository consists out of the following components:
- The source code of the SDK itself:
/src
and/lib
- The source code of the unit and integration tests (including the examples):
/tests
Requirements
PHP 5.4 or above is required. In addition, to support streaming uploads, package robtimus/multipart is required.
Installation via Composer
-
Initialize Composer in your project, if this is not already done, by executing the following command:
composer init
-
Add a requirement to the SDK to your
composer.json
file by executing the following command:composer require ingenico-epayments/connect-sdk-php
-
Add
vendor/autoload.php
to your project, if this is not already done, by adding the following line of code:require __DIR__ . '/vendor/autoload.php';
Manual installation
- Download the latest version of the PHP SDK from GitHub. Choose the
connect-sdk-php-x.y.z.tar.gz
file from the releases page, wherex.y.z
is the version number. - Add the contents of the
tar.gz
file to your project. The content of the/src
and/lib
folders may be combined, if this is required by the project. - Add all classes from the
/src
and/lib
folders to your autoloader; all classes inside these folders are compliant with PSR-4.
Development and testing
- Install Composer
- From the root of the sdk-php project, run
composer install
- Copy
tests/config.json.dist
totests/config.json
and replace the template values by actual values - From the root of the sdk-php project,
vendor/phpunit/phpunit/phpunit
(or justphpunit
when it is already installed on your local machine)