Download the PHP package snlbaral/coinbase-api-php without Composer
On this page you can find all versions of the php package snlbaral/coinbase-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package coinbase-api-php
coinbase-api-php
This is an open source library that allows PHP applications to interact programmatically with the COINBASE CONNECT (OAUTH2).
Requirements
Using this library for PHP requires the following:
- [Composer][composer] or a manual install of the dependencies mentioned in
composer.json
.
Installation
The recommended way to install it PHP is to install it using [Composer][composer]:
Quick start
Create an OAuth2 Application. Once created, your application is assigned with Client ID, Client secret. Once you have a Redirect URI, a Client ID, and a Client Secret, your web application can start using this library by following these steps. Warning: Client Secrets are similar to passwords or private keys by allowing an application to identify as yours: therefore, Client Secrets should be kept private.
Step 1: create your configuration
config.php
Step 2: Create coinbase_token.php
and add this uri to your application's redirect uri(s).
Step 3: get an OAuth access token
After creating coinbase_token.php
file and adding this uri to your applications redirect uri(s). Open coinbase_token.php
and authorize the application.
It will return an access token, save this token to use it in the application.
Usages
Init
Get Address
List transactions
Warning: Access Token is only valid for 2 hours. After 2 hours it will return a 401 error. You'll need to get new access token to continue using the service through OAuth2
Example.php
License
This library for PHP is licensed under the 3-Clause BSD License
Credits
This library for PHP is developed and maintained by Sunil Baral.