You can sign up for a FedaPay account at https://fedapay.com., (*1)
Requirements
PHP 5.5 and later., (*2)
Composer
You can install the bindings via Composer. Run the following command:, (*3)
composer require fedapay/fedapay-php
To use the bindings, use Composer's autoload:, (*4)
require_once('vendor/autoload.php');
Manual Installation
If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php
file., (*5)
require_once('/path/to/fedapay-php/init.php');
Dependencies
The bindings require the following extension in order to work properly:, (*6)
-
curl
, although you can use your own non-cURL client if you prefer
json
-
mbstring
(Multibyte String)
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available., (*7)
Getting Started
Simple usage looks like:, (*8)
Documentation
Please see https://docs.fedapay.com/development/api for up-to-date documentation., (*9)
Development
Install dependencies:, (*10)
``` bash
composer install, (*11)
## Tests
Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:
```bash
./vendor/bin/phpunit
Or to run an individual test file:, (*12)
./vendor/bin/phpunit tests/UtilTest.php