Download the PHP package oprokidnev/bitcoind-php without Composer

On this page you can find all versions of the php package oprokidnev/bitcoind-php. 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 bitcoind-php

nbobtc/bitcoind-php Travis branch Packagist Packagist Pre Release

Code Climate Code Climate SensioLabs Insight

This project is used to interact with a headless bitcoin program called bitcoind. It also contains various utility classes for working with Bitcoin as a PHP Developer.

Installation

You can install this library by using Composer. You can also view more info about this on Packagist.

Add this to the require section in your composer.json file.

Usage

To use the project you need to just create a new instance of the class.

You are able to get the Request and Response objects back from the client with the correct getters: getRequest() and getResponse().

You can also parse the response however you wish to do so since the result is returned to you as a string. See below for some ideas!

Commands

Commands are created in such a way that this will support any future updates the Bitcoin API by providing you with an easy class that sets all the required information.

You are able to pass into the object the method and the parameters that are required. Here are a few examples:

The second argument MUST be in the same order as on the Bitcoin API wiki page. There is no need to assign the values any keys.

Parameters

Parameters are the second argument when creating a new Command. This argument can either be a string OR an array. For example, both of these are valid.

Most commands in the Bitcoin API take one parameter. If it takes MORE than one, you must pass the parameters in as an array in the ORDER you find them on that page.

Extending Commands

If, for any reason, you need to extend a command, it MUST implement CommandInterface. You can find documentation within the interface on how to implement this.

Drivers

Drivers are used by the ClientInterface for connecting to a bitcoind service and sending Requests. The return a Response. If you need to implement a new driver take a look at the DriverInterface.

cURL Driver

This is used by default and allows you a lot of options for customizing it to your needs.

You can set various cURL Options by passing them into the function addCurlOption($option, $value).

Here's an example of how to configure and use the driver.

Feel free to take a look at the CurlDriver source code.

Cookbook

How to enable a Keep-Alive ie Persistent Connection

This example shows how you are able to set the client up to [Persistent Connection].

How to set a CA Cert

This library provides some wonderful flexibility that will allow you to configure the client to use your own CA Cert.

How to Convert Output to an Array

Some like the arrays

How to Convert Output to a stdClass object

Some like the objects

Testing

All testing is done using PHPUnit. You should be able to run phpunit in the root directory of this project (the directory where phpunit.xml.dist is located) and the tests will run.

If submitting a pull request or working on this library, please make sure that the tests will pass.

Change log

See CHANGELOG.md.

Contains information on releases such as what was added, changed, etc. It's good to look at to see what has changed from release to release.

Contributing

See CONTRIBUTING.md.

Various ways on contributing to this project.

Branching

master

This is the latest and greatest, it should not be used an is considered development for testing new features and functionality. This should NOT be used in a production environment.

2.x

Current production branch. All 2.x tags come off of this branch.

1.x

Deprecated, only used for bug fixes and for historical records.

Releasing

You can find a complete list of Releases on GitHub.

Checklist

License (MIT) Packagist

Copyright (C) 2012-2014 Joshua Estes

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of bitcoind-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-curl Version *
ext-json Version *
psr/log Version ~1.0
psr/http-message Version ~1.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 oprokidnev/bitcoind-php contains the following files

Loading the files please wait ....