fedapay / fedapay-php
PHP library for FedaPay https://fedapay.com
Installs: 40 487
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 8
Forks: 13
Open Issues: 1
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^4.0 || ^5.7 || ^9.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-11-12 18:30:42 UTC
README
You can sign up for a FedaPay account at https://fedapay.com.
Requirements
PHP 5.5 and later.
Composer
You can install the bindings via Composer. Run the following command:
composer require fedapay/fedapay-php
To use the bindings, use Composer's autoload:
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.
require_once('/path/to/fedapay-php/init.php');
Dependencies
The bindings require the following extension in order to work properly:
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.
Getting Started
Simple usage looks like:
Documentation
Please see https://docs.fedapay.com/development/api for up-to-date documentation.
Development
Install dependencies:
composer install
Tests
Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:
./vendor/bin/phpunit
Or to run an individual test file:
./vendor/bin/phpunit tests/UtilTest.php