2017 © Pedro Peláez
 

library blockchain

image

jurruh/blockchain

  • Saturday, December 9, 2017
  • by jurruh
  • Repository
  • 1 Watchers
  • 7 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Blockchain

This repository contains a basic PHP blockchain implementation., (*1)

Example usage:, (*2)

//Create the chain
$chain = new \Blockchain\Chain();

//Add some blocks to te chain
$firstBlock = new \Blockchain\Block(0, null, time(), 'Example data 1');
$chain->addBlock($firstBlock);

$secondBlock = new \Blockchain\Block(1, $firstBlock->getHash(), time(), 'Example data 2');
$chain->addBlock($secondBlock);

//Check if valid
if($chain->isValid()){
    //The chain is valid
}

The Versions

09/12 2017

dev-master

9999999-dev

  Sources   Download

The Development Requires

09/12 2017

0.0.1

0.0.1.0

  Sources   Download

The Development Requires