Skip to content

shadu120/class.bitmessage.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitmessage PHP Class

Bitmessage PHP Class to control PyBitmessage daemon using xmlrpc

Release Information

This repo contains in-development code for future releases. To download the latest stable release please visit the release page.

Get latest release information by subscribing to this address: BM-NB19YCwxEnxQXNcGsiFiZU6hjAtJ3pEA

Requirements

php5-xmlrpc

Getting Started

  1. Make sure php5-xmlrpc is installed and loaded

apt-get install php5-xmlrpc

service apache2 restart

  1. Include class.bitmessage.php into your PHP script:

    require_once('curl.php');

    require_once('class.bitmessage.php');

  2. Initialize Bitmessage connection/object:

    $bitmessageObj = new bitmessage("<RPCusername>:<RPCpassword>@<RPChost>:<RPCport>/");

    Optionally, you can turn off the class autoload & stt protocol (HTTP and HTTPS). Default autoload is true, protocol is http.

    $bitmessageObj = new bitmessage("<RPCusername>:<RPCpassword>@<RPChost>:<RPCport>/", "http", false);

  3. Make calls to Bitmessage daemon as methods for your object. Examples:

    $bitmessageObj->newAddress($label, $eighteenByteRipe = false, $totalDifficulty = 1, $smallMessageDifficulty = 1);

    $bitmessageObj->setStrip(true);

    $bitmessageObj->broadcast($address, $title, $message);

Features

  • Automatic Decoding
  • Automatic HTML strip
  • Support SSL over HTTPS
  • Clean arrays (JSON decoded)

Contributing

You can contribute to this project in different ways:

  • Report outstanding issues and bugs by creating an Issue
  • Suggest feature enhancements via our Forum Thread on bitmessage forum
  • Fork the project, create a branch and file a pull request to improve the code itself

Contact

Bitmessage: BM-NBbV3NmtCjNvBJnQbHALMtGQ8MkLNA3D

Donations

Donations to this project are going directly to Conver, the original author of this project:

  • LTC address: LVHG4gn8YPaD1DcVij4TribsVXtsNyyUiq
  • BTC address: 1MGACAk1ELwcm1wac5AFN9ZVd7d1NsSjsh

LICENSE

Copyright (C) 2014 - 2014 Convertor

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/

About

Bitmessage PHP Class to control PyBitmessage daemon using xmlrpc

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors