web3-php / cli
Web3 PHP CLI is a blazing fast blockchain server for local development.
Fund package maintenance!
nunomaduro
www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 140
Watchers: 6
Forks: 11
Open Issues: 0
Requires
- php: ^8.0
- ext-pcntl: *
- ext-posix: *
- nunomaduro/termwind: dev-master
- spatie/once: ^3.0.1
- symfony/console: ^5.3.11
- symfony/process: ^5.3.12
- web3-php/web3: dev-master
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.3.2
- pestphp/pest: ^1.21.0
- phpstan/phpstan: ^1.2.0
- symfony/var-dumper: ^5.3.11
This package is auto-updated.
Last update: 2023-03-09 00:30:21 UTC
README
Web3 PHP CLI is a blazing fast blockchain server for local development.
This project is a work-in-progress. Code and documentation are currently under development and are subject to change.
Get Started
Requires PHP 8.0+
First, install Web3 via the Composer package manager:
composer global config prefer-stable true
composer global config minimum-stability dev
composer global require web3-php/cli
Then, start the local blockchain server:
web3
Options
accounts
The accounts
option allows to specify the number of accounts.
web3 --accounts=5 # Default: 5
host
The host
option allows to specify the hostname to listen on.
web3 --host=127.0.0.2 # Default: 127.0.0.1
port
The port
option allows to specify the port number to listen on.
web3 --port=8550 # Default: 8545
Web3 PHP CLI is an open-sourced software licensed under the MIT license.