Download the PHP package akondas/php-blockchain without Composer
On this page you can find all versions of the php package akondas/php-blockchain. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akondas/php-blockchain
More information about akondas/php-blockchain
Files in akondas/php-blockchain
Package php-blockchain
Short Description Minimal working blockchain implemented in PHP
License MIT
Informations about the package php-blockchain
Blockchain implementation in PHP
Clean code approach to blockchain technology. Learn blockchain by reading source code.
Roadmap
- [x] Block structure and hashing
- [x] Genesis block
- [x] Storing and validate Blockchain
- [x] Proof of Work with difficulty (missing consensus on the difficulty)
- [X] Communicating with other nodes & controlling the node (based on ReactPHP)
- [ ] Simple persistence layer
- [ ] Going serverless with AWS Lambda (experiment)
- [ ] Start working on KondasCoin akondas/coin :rocket: (Transactions, Wallet, Transaction relaying, Maybe some UI)
Node
To start the node:
Default web server port is 8080 but you can change it with --http-port
param:
Default p2p server port is 3030 but you can change it with --p2p-port
param:
API
To control node you can use simple (pseudo) REST API:
[GET] /blocks Response (list of all blocks):
[POST] /mine Request (raw):
Response (mined block):
[GET] /peers Response (list of all connected peers):
[POST] /peers/add Request (json with peer):
Response: 204 (empty)
Tests
To run test suite:
Coding standards
Checkers and fixers are in coding-standard.neon
. To run:
License
php-blockchain is released under the MIT Licence. See the bundled LICENSE file for details.
Author
Arkadiusz Kondas (@ArkadiuszKondas)