2017 © Pedro Peláez
 

library towallet-php

Towallet API PHP Library

image

towallet/towallet-php

Towallet API PHP Library

  • Tuesday, July 18, 2017
  • by CODE7STUDIO
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ToWallet-PHP

Installation

Using Composer

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)

  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"
      }
    }
    
  2. Then run the following command to install the ToWallet-PHP library:, (*3)

    composer install
    
  3. 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';
    

Manually

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)

  1. Extract the library to your project., (*6)

  2. Then, include the following line into your PHP file,, (*7)

    require_once dirname(__FILE__).'/towallet-php/lib/Towallet.php';
    
  3. Now you are ready to start using the library, (*8)

Quick Start

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'
));

The Versions

18/07 2017

dev-master

9999999-dev https://github.com/towallet/towallet-php.git

Towallet API PHP Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by ToWallet.ME

payment towallet