Easy to use virtual currency exchangers APIs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
.gitignore
LICENSE
README-ja.md
README.md
composer.json

README.md

What is memoin

memoin (this project) is an SDK for PHP which is made to support many virtual currency exchangers. memoin utilizes API provided by exchangers in order that the system makes it possible to optimize transactions over virtual currencies.

Requirements

  • PHP >= 7
  • Composer
  • GuzzleHttp

Installation

Run the command below to get started.

composer require memory-agape/memoin

Supports

Examples

  • See examples

Donations

  • Donations are always welcome. They help me develop.
  • Please make remittance to my Bitcoin address (321KChd61h3kp7XfkGz6rWiSNdhZiJMxSf) or MONA Coin address (MQoKahJCjsBsgZtZSqCTCewgADiyvd9a3B)

Methods

Below code are Memoin APIs. Memoin is optimized to coding/typing.

$exchanger = (new Memoin\Core\Exchanger(Memoin\Exchangers\bitFlyer::class, new Memoin\Credentials\Credential([
    'API_KEY'   => 'API Key',
    'API_SECRET' => 'API Secret',
])))->getExchanger();

// send with GET method
$exchanger->get($apiUriHere);

// send with POST method
$exchanger->post($apiUriHere, $bodyHere, $extendHeadersHere);

// call by any method for RESTful APIs (PUT, DELETE and so on)
$exchanger->call($apiURIHere, $methodHere, $authHere, $extendHeadersHere, $bodyHere);

// streaming service
$exchanger->streaming(new class extends Memoin\API\Streaming {
  
      public function receive ($message) {
  
          // received streaming message
          print_r($message);
      }
  
  }, Memoin\Enums\Currency::MONA, Memoin\Enums\Currency::JPY);

Issues and Pull requests

  • Have new ideas, or found bugs? Join this project!