Download the PHP package alex2k19/blocktrail-sdk without Composer

On this page you can find all versions of the php package alex2k19/blocktrail-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package blocktrail-sdk

BlockTrail PHP SDK

This is the BlockTrail PHP SDK. This SDK contains methods for easily interacting with the BlockTrail API. Below are examples to get you started. For additional examples, please see our official documentation at https://www.blocktrail.com/api/docs/lang/php

Latest Stable Version Latest Unstable Version License

Build Status

Upgrading from v2.x to v3.0.0

IMPORTANT v3.0.0 introduces a new DEFAULT wallet encryption, please make sure you upgrade the SDK everywhere you're using it!!

Upgrading from v1.x to v2.0.0

IMPORTANT v2.0.0 has a few BC breaks, please check docs/CHANGELOG.md!!

Upgrading from v1.2.x to v1.3.0

IMPORTANT v1.3.0 adds the option to choose a fee strategy and by default chooses DYNAMIC, please check docs/CHANGELOG.md for the details!!

IMPORTANT! FLOATS ARE EVIL!!

As is best practice with financial data, The API returns all values as an integer, the Bitcoin value in Satoshi's. In PHP even more than in other languages it's really easy to make mistakes whem converting from float to integer etc!

When doing so it's really important that you use the bcmath or gmp libraries to avoid weird rounding errors! The BlockTrail SDK has some easy to use functions to do this for you, we recommend using these and we also strongly recommend doing all Bitcoin calculation and storing of data in integers and only convert to/from Bitcoin float values for displaying it to the user.

A bit more about this can be found in our documentation.

Requirements

The SDK requires PHP 5.6+ and the Intl, GMP and BCMath PHP extensions.
To install these on Ubuntu use:

BCMath should already be part of the default php5 package

On Windows you need to uncomment the extensions in your php.ini if they are not already enabled:

Installation

To install the SDK, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer and the BlockTrail PHP SDK.

Next, require Composer's autoloader, in your application, to automatically load the BlockTrail SDK in your project:

Or if put the following in your composer.json:

Windows Developers
A note for windows developers: you may encounter an issue in php with cURL and SSL certificates, where cURL is unable to verify a server's cert with a CA ((error 60)[http://curl.haxx.se/libcurl/c/libcurl-errors.html]).
Too often the suggested solution is to disable ssl cert verification in cURL, but this completely defeats the point of using SSL. Instead you should take two very simple steps to solve the issue permanently:

  1. download cacert.pem from the curl website. This is a bundle of trusted CA root certs extracted from mozilla.org. Save it in a folder within your php installation.
  2. open your php.ini and add/edit the following line (use an absolute path to where you placed the cert bundle):

(Optional) Use libsecp256k1

The underlying bitcoin-php library that is used to sign transactions can use libsecp256k1 for (A LOT) faster signing of transactions. If the secp256k1-php PHP extension is installed it will be automatically used and will greatly improve performance!

The installation is a bit cumbersome though and because libsecp256k1 still changes a lot building might not always work! If you can get it to install; AWESOME, if not, have patience while we're working on figuring out how to provide installers for them.

https://github.com/Bit-Wasp/secp256k1-php#to-install

MAKE SURE TO RUN THE TESTSUITE OF secp256k1-php AFTER THE INSTALL BEFORE ENABLING THE EXTENSION!!

Usage

Please visit our official documentation at https://www.blocktrail.com/api/docs/lang/php for the usage.

Support and Feedback

Be sure to visit the BlockTrail API official documentation website for additional information about our API.

If you find a bug, please submit the issue in Github directly. BlockTrail-PHP-SDK Issues

If you need additional assistance, contact one of our developers at [email protected].

Unit Tests and Coding Style

The project follows the PSR2 coding style, which can easily be validated with ./vendor/bin/phpcs --standard=./phpcs.xml -n -a ./src/. Unit Tests are created with PHPunit and can be ran with ./vendor/bin/phpunit

Release

License

The BlockTrail PHP SDK is released under the terms of the MIT license. See LICENCE.md for more information or see http://opensource.org/licenses/MIT.


All versions of blocktrail-sdk with dependencies

PHP Build Version
Package Version
Requires php-64bit Version >=5.6.0
ext-intl Version *
ext-gmp Version *
ext-bcmath Version *
ext-gd Version *
ext-dom Version *
ext-curl Version *
bitwasp/bitcoin Version v0.0.34.1
btccom/justencrypt Version v0.2.0
btccom/cashaddress Version v0.0.3
mdanter/ecc Version v0.4.*
guzzlehttp/guzzle Version 6.*
99designs/http-signatures-guzzlehttp Version 2.0.*
rych/hash_pbkdf2-compat Version ~1.0
ramsey/array_column Version ~1.1
dompdf/dompdf Version 0.6.*
endroid/qrcode Version 1.5.*
blocktrail/cryptojs-aes-php Version 0.1.*
spomky-labs/php-aes-gcm Version v1.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alex2k19/blocktrail-sdk contains the following files

Loading the files please wait ....