Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 508 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 508 Bytes

PHP BlockChain

PHP Blockchain is a simple implementation of the blockchain data structure and proof-of-work using the PHP programming language. It is designed as an introduction to blockchain technology for PHP programmers.

To run, download the source code, and, from the command line, run:

php tests/simplechain.php

This will output a simple blockchain with 3 blocks.

php tests/hackchain.php

This will validate the chain before and after a block is changed and shows the immutability of blockchains.