An open API service indexing awesome lists of open source software.

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

This is a Php package project to incorporate API of Substrate framework for Blockchain
https://github.com/nitor-infotech-oss/parity-substrate-interface

api blockchain parity-substrate

Last synced: 7 months ago
JSON representation

This is a Php package project to incorporate API of Substrate framework for Blockchain

Awesome Lists containing this project

README

          

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

## Budge Goes Here

[![Issue](https://img.shields.io/github/issues/nitor-infotech-oss/parity-substrate-interface?style=flat-square)](https://github.com/nitor-infotech-oss/parity-substrate-interface)

## Clone Package

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

## Installation

You can install the package via composer:

```bash
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)

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

## Testing

```bash
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](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.