dev-master
9999999-dev https://github.com/towallet/towallet-php.gitTowallet API PHP Library
MIT
The Requires
- php >=5.3.0
by ToWallet.ME
payment towallet
Towallet API PHP Library
You can install the library via Composer. If you don't already have Composer installed, first install it by following one of these instructions depends on your OS of choice:, (*1)
After composer is installed, you can declare ToWallet-PHP as a project dependency by creating a composer.json
at the root of your project directory with the following content:, (*2)
{ "require": { "towallet/towallet-php": "dev-master" } }
Then run the following command to install the ToWallet-PHP library:, (*3)
composer install
Once you run the composer install
command, the Composer will generate a vendor
folder at the same directory as composer.json
.
Now you can then add the following line to PHP script to load the library:, (*4)
require_once dirname(__FILE__).'/vendor/autoload.php';
If you're not using Composer, you can also download ToWallet-PHP. Then, follows the instruction below to install ToWallet-PHP to the project., (*5)
Extract the library to your project., (*6)
Then, include the following line into your PHP file,, (*7)
require_once dirname(__FILE__).'/towallet-php/lib/Towallet.php';
Now you are ready to start using the library, (*8)
Now from the above sections, your code will looks similar like the below., (*9)
require_once dirname(__FILE__).'/vendor/autoload.php'; define('TOWALLET_PUBLIC_KEY', 'pkey-xxxxxxxxxx'); define('TOWALLET_SECRET_KEY', 'skey-xxxxxxxxxx');
$transaction = TowalletTransaction::get(array( 'invoice_id' => 'M12345678' ));
Towallet API PHP Library
MIT
payment towallet