Paylands PHP bindings
, (*1)
You can get your Paylands account at Paynopain, (*2)
Requirements
PHP 5.5.0 and later., (*3)
Installation
You can install the library via Composer. Run the following command:, (*4)
composer require wearemarketing/paylands-php
To use the library, use Composer's autoload:, (*5)
require_once('vendor/autoload.php');
We use HTTPPlug as the HTTP client abstraction layer, so you must install an HTTP client implementation an its corresponding
adapter. In the followingnexample, we will use a Guzzle adapter to provide dependencies., (*6)
composer require php-http/guzzle6-adapter
If you want to use another HTTP client implementation, you can check here the full list of HTTP client implementations., (*7)
Documentation
Please see integration tests. For up-to-date documentation about Paylands API see docs., (*8)
Development
To execute the test suite just follow next steps., (*9)
composer install
Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:, (*10)
./vendor/bin/phpunit
To enable integration tests you must set your API keys in the PHPUnit's config file (see phpunit.xml.dist), (*11)
Find some of the community-supported libraries available for Paylands PHP listed below., (*12)