Skip to content

brad-tech/localbitcoins-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localbitcoins-client

A Localbitcoins Client for PHP with minimal dependencies. Should work right off the box.

Documentation for the Localbitcoins API can be found here: https://localbitcoins.com/api-docs/.

Installing

Make sure you have cURL enabled in your php environment.

php --ri curl

you should see this text on your terminal:

cURL support => enabled

Install with composer

composer require bradtech/localbitcoins-client

Usage

To use the HMAC Authentication Client, create a newHMACAuthenticationClient object and initialize with the HMAC key and secret from Localbitcoins.

<?php

// you can load the files dynamically
require_once 'vendor/autoload.php';

use Bradtech\LocalbitcoinsClient\HMACAuthenticationClient;

$hmac_key = 'HMAC_KEY';
$hmac_secret = 'HMAC_SECRET';

$client = new HMACAuthenticationClient($hmac_key, $hmac_secret);

$data = $client->getWalletAddress();

var_dump($data);

About

A Localbitcoins Client for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages