nitor-infotech-oss/parity-substrate-interface

By using package you can interact with running substrate node.

dev-main 2022-01-17 14:04 UTC

This package is not auto-updated.

Last update: 2022-09-20 11:54:34 UTC


README

We have implemented package which help use to communicate with surface interface through function.

Budge Goes Here

Issue

Clone Package

git clone https://github.com/nitor-infotech-oss/parity-substrate-interface.git

Installation

You can install the package via composer:

composer require nitorInfoTechOss/substrate-interface-package

Steps to create test enviornment

  1. Create Test folder and one php file to test code

  2. run command "touch composer.json"

  3. try to run following code.

Usage (Just Like)

$testClass = new SubstrateInterface("http_url");
echo $testClass->rpc->system->name();

Testing

vendor/phpunit/phpunit/phpunit

To run TestCases

I] Clone project git clone https://github.com/neha0921/substrate-interface-package.git

II] Update Composer composer Update

III] To check testcase run following command

vendor/bin/phpunit

e.g. ::

  1. vendor/bin/phpunit --filter testSystemName

  2. vendor/bin/phpunit --filter testRpcMethods

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.