abenity / abenity-php
PHP client for the Abenity API documented at https://abenity.com/developers/api
Installs: 109 284
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 3
Open Issues: 0
Requires
- php: ^5.3 || ^7.0 || ^8.0
- ext-openssl: *
- phpseclib/phpseclib: ~2.0
Requires (Dev)
- phpunit/phpunit: ^9
README
A PHP library for using the Abenity API.
You can find the full API documentation in the official documentation.
Requirements
This library works with PHP versions 7 and 8 and requires the OpenSSL module
Installation
With Composer
abenity/abenity-php
package is available on Packagist.
Include it in your composer.json
as follows:
-
Add abenity/abenity-php as a dependency in composer.json.
composer require abenity/abenity-php:^2
-
Now
Abenity
will be autoloaded into your project.require 'vendor/autoload.php'; $abenity = new Abenity\ApiClient('my_api_key','my_api_username','my_api_password');
Manually
-
Download the latest release.
-
Extract into a folder in your project root named "abenity-php".
-
Include
Abenity
in your project like this:require 'abenity-php/lib/Abenity.php'; $abenity = new Abenity\ApiClient('my_api_key','my_api_username','my_api_password');
Usage
See examples folder
Contributing
Run the tests from the project root with PHPUnit like this:
[abenity-php]# phpunit tests