⚙️ Web3 PHP CLI is a blazing fast blockchain server for local development.

Overview

Web3 PHP

GitHub Workflow Status (master) Total Downloads Latest Version License


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 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: 10

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.

You might also like...
Php-rpc-server - JSON RPC server implementation for PHP.

JSON RPC Server implementation for PHP. The json-rpc is a very simple protocol. You can see this by reading the protocol specification. This library i

For server-to-server comms from PHP to CloudKit.

CloudKit-PHP Today I found this fantastic gist by Mauricevb that demonstrates how to communicate with CloudKit from PHP. I already had a previous proj

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)

COPS COPS stands for Calibre OPDS (and HTML) Php Server. See : COPS's home for more details. Don't forget to check the Wiki. Why ? In my opinion Calib

This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

PHP-introduction This project processes a small database with php all on a web server. This project uses XAMPP to run the web server and the database.

A plugin that allows you to hear the sound "Welcome to the server!" when you join the server by NhanAZ for PocketMine-MP

General A plugin that allows you to hear the sound "Welcome to the server!" when you join the server by NhanAZ for PocketMine-MP Contacts You can cont

EXT:server-timing adds Server-Timing Header with usefull information
EXT:server-timing adds Server-Timing Header with usefull information

EXT:server_timing - see your performance installation composer require kanti/server-timing at the moment there is nothing to configure Server timings

A Simplistic Plugin to Implement Server Claims to your Minecraft: Bedrock Server.
A Simplistic Plugin to Implement Server Claims to your Minecraft: Bedrock Server.

Claims This plugin allows administrators to create, edit, list, and teleport to land claims on a PocketMine server. These claims have a variety of cus

A PHP library that can be used manually as well as a CLI script that you can just run on your file

Run phpcs on files and only report new warnings/errors compared to the previous version. This is both a PHP library that can be used manually as well

Kirby 3 Plugin for running jobs like cleaning the cache from within the Panel, PHP code, CLI or a cronjob

Kirby 3 Janitor Kirby 3 Plugin for running jobs. It is a Panel Button! It has jobs build-in for cleaning the cache, sessions, create zip-backup, pre-g

Comments
  • Undefined function `posix_kill()`

    Undefined function `posix_kill()`

    OS: Windows 10 PHP version: PHP 8.1.1

    I've encountered the following error after I ran web3 for the second time, Did anyone encounter the same?

    Fatal error: Uncaught Error: Call to undefined function Web3\Cli\Guards\posix_kill() in C:\Users\User\AppData\Roaming\Composer\vendor\web3-php\cli\src\Guards\KillsExistingServers.php:24
    Stack trace:
    #0 C:\Users\User\AppData\Roaming\Composer\vendor\web3-php\cli\src\Factories\CommandFactory.php(49): Web3\Cli\Guards\KillsExistingServers->execute()
    #1 C:\Users\User\AppData\Roaming\Composer\vendor\symfony\console\Command\Command.php(296): Web3\Cli\Factories\CommandFactory->Web3\Cli\Factories\{closure}(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #2 C:\Users\User\AppData\Roaming\Composer\vendor\symfony\console\Application.php(1005): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #3 C:\Users\User\AppData\Roaming\Composer\vendor\symfony\console\Application.php(299): Symfony\Component\Console\Application->doRunCommand(Object(Symfony\Component\Console\Command\Command), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #4 C:\Users\User\AppData\Roaming\Composer\vendor\symfony\console\Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #5 C:\Users\User\AppData\Roaming\Composer\vendor\web3-php\cli\bin\web3(32): Symfony\Component\Console\Application->run()#6 C:\Users\User\AppData\Roaming\Composer\vendor\web3-php\cli\bin\web3(38): {closure}()
    #7 {main}
      thrown in C:\Users\User\AppData\Roaming\Composer\vendor\web3-php\cli\src\Guards\KillsExistingServers.php on line 24
    

    KillsExistingServers.php Line 24

    @posix_kill((int) $processId, SIGQUIT);
    
    opened by whoami15 1
  • Bug - composer global  require, web3-php/cli dev-master requires symfony/console

    Bug - composer global require, web3-php/cli dev-master requires symfony/console

    To install global in Ubuntu 20 i need run same as sudo:

     composer global require web3-php/cli --with-all-dependencies
    

    With not add param error:

    composer require web3-php/cli   
    Using version dev-master for web3-php/cli
    ./composer.json has been updated
    Running composer update web3-php/cli
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires web3-php/cli dev-master -> satisfiable by web3-php/cli[dev-master].
        - web3-php/cli dev-master requires symfony/console ^5.3.11 -> found symfony/console[v5.3.11, ..., 5.4.x-dev] but the package is fixed to v5.3.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    
    
    opened by z4nder 1
Owner
Web3 PHP
Makes PHP Web3 development more productive and enjoyable.
Web3 PHP
Thirdweb-wp - A community WordPress plugin for thirdweb. Turn your WordPress website into Web3 instantly and easily with thirdweb. 💻🌏

Thirdweb WP ?? Nominate (@WarenGonzaga) as GitHub Star. If you appreciate his hardwork and dedication to open source. A community WordPress plugin for

Waren Gonzaga 8 Dec 19, 2022
PHP library for interacting with the Waves blockchain.

Waves-PHP PHP client library for interacting with Waves blockchain platform. Installation composer require waves/client Usage See example.php for full

Waves Protocol 4 Sep 30, 2022
A great Start for your next Magento Theme's local.xml file

Magento-local.xml-Template A Great Start for your next Magento Theme's local.xml file - <?xml version="1.0"?> <layout> <!-- Add/Remove Items From H

Bryan Littlefield 36 Apr 19, 2021
Chat over your local network: 127.0.0.1

#Howto: install packages: apache2 (or nginx but I wouldn't prefer it if you're using your local computer) php for ubuntu/debian instance: $ apt instal

Omer Erbilgin 1 Jan 12, 2022
This composer plugin is a temporary implementation of using symbolic links to local packages as dependencies to allow a parallel work process

Composer symlinker A Composer plugin to install packages as local symbolic links. This plugin is a temporary implementation of using symbolic links to

Pierre Cassat 18 Nov 9, 2021
WP Local Analytics plugin. - run user analytics within your system and track user data inside your database.

WP Local Analytics plugin. - run user analytics within your system and track user data inside your database.

Gary 5 Dec 21, 2022
Applies a patch from a local or remote file to any package that is part of a given composer project.

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level in package config or separate JSON file. Declaration-free mode (using embedded info within patch files) is available as well.

Vaimo 245 Dec 15, 2022
A block-based child theme for WordPress.org, plus local environment

WordPress.org Block Theme A block-based child theme for WordPress.org, plus local environment. Once set up, this environment will contain some shared

WordPress 29 Dec 30, 2022
Jump is yet another self-hosted startpage for your server designed to be simple, stylish, fast and secure.

Jump Jump is yet another self-hosted startpage for your server designed to be simple, stylish, fast and secure. Features Fast, easy to deploy, secure

Dale Davies 309 Dec 27, 2022
Fast friending system for PocketMine server owners!

QuickFriends ✔ Friend requests and /f block ✔ List friends and check if their online ✔ Customize command messages ✔ Configure worlds players can /f jo

DiamondStrider1 4 Aug 18, 2022