PHPackages                             gmajor/php-substrate-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. gmajor/php-substrate-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

gmajor/php-substrate-api
========================

PHP Substrate RPC Api

v1.0.2(1y ago)72139[2 PRs](https://github.com/gmajor-encrypt/php-substrate-api/pulls)MITPHPPHP &gt;=8.0

Since Mar 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gmajor-encrypt/php-substrate-api)[ Packagist](https://packagist.org/packages/gmajor/php-substrate-api)[ RSS](/packages/gmajor-php-substrate-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

php-substrate-api
=================

[](#php-substrate-api)

---

PHP Substrate RPC Api

Requirement
-----------

[](#requirement)

- php &gt;=8.0 (install ffi )
- curl ()
- json ()
- sodium ()
- gmp ()
- dom ()
- mbstring ()

Installation
------------

[](#installation)

If you want to install php-substrate-api in an existing project

```
composer require gmajor/php-substrate-api
```

if it is a new project

```
mkdir new_project && cd new_project  && composer init --stability=dev && composer require gmajor/php-substrate-api
```

Basic Usage
-----------

[](#basic-usage)

### Autoloading

[](#autoloading)

Codec supports `PSR-4` autoloaders.

```
