wearemarketing / paylands-php
Paynopain Paylands service
Installs: 16 132
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 12
Forks: 4
Open Issues: 1
Requires
- php: ^5.5|>=7.0.8
- php-http/client-common: ^1.6
- php-http/discovery: ^1.3
Requires (Dev)
- guzzlehttp/psr7: ^1.0
- php-http/guzzle6-adapter: ^1.1
- php-http/mock-client: ^1.0
- phpunit/phpunit: <6.0
Suggests
- guzzlehttp/guzzle: Implements a required PSR-7 Http client
This package is auto-updated.
Last update: 2024-10-27 15:29:01 UTC
README
You can get your Paylands account at Paynopain
Requirements
PHP 5.5.0 and later.
Installation
You can install the library via Composer. Run the following command:
composer require wearemarketing/paylands-php
To use the library, use Composer's autoload:
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.
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.
Documentation
Please see integration tests. For up-to-date documentation about Paylands API see docs.
Development
To execute the test suite just follow next steps.
composer install
Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:
./vendor/bin/phpunit
To enable integration tests you must set your API keys in the PHPUnit's config file (see phpunit.xml.dist)
Community
Find some of the community-supported libraries available for Paylands PHP listed below.
- PaymentSuite (Symfony bundle)