PHP code example of psr18-adapter / mangopay-php-sdk-v2
1. Go to this page and download the library: Download psr18-adapter/mangopay-php-sdk-v2 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
psr18-adapter / mangopay-php-sdk-v2 example snippets
$api = new \MangoPay\MangoPayApi();
$api->setHttpClient(
new \Psr18Adapter\Mangopay\MangopayPsr18Client(
$api,
$psr18Client,
$psrRequestFactory,
$psrUriFactory,
$psrStreamFactory
)
);