PHPackages                             viz-blockchain/viz-php-lib - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. viz-blockchain/viz-php-lib

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

viz-blockchain/viz-php-lib
==========================

Native PHP class for VIZ Keys, Transaction, JsonRPC

v1.0(5y ago)221MITPHPCI passing

Since Mar 2Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/VIZ-Blockchain/viz-php-lib)[ Packagist](https://packagist.org/packages/viz-blockchain/viz-php-lib)[ Docs](https://github.com/VIZ-Blockchain/viz-php-lib)[ RSS](/packages/viz-blockchain-viz-php-lib/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

viz-php-lib
===========

[](#viz-php-lib)

[![VIZ PHP Library](logo-viz-php-lib.svg)](logo-viz-php-lib.svg)

Native PHP class for VIZ Keys, Transaction, JsonRPC

Features
--------

[](#features)

- JsonRPC — native socket usage (all API methods, hostname cache, ssl flag, full result flag)
- Keys — private (sign), public (verify), shared, encoded keys support (wif, public encoded, compressed/uncompressed public key in hex representation)
- Transaction — easy workflow, multi-signature support, multi-operations support, execute by JsonRPC, support all 38 operations: transfer, transfer\_to\_vesting, withdraw\_vesting, award, create\_invite, etc...
- Classes support PSR-4
- Contains modificated classes for best fit to VIZ Blockchain (all-in-one)
- Native code without additional installations (sry composer, but we need other changes in third-party classes)
- Utils for keys compatibility with Ethereum, Bitcoin addresses
- Utilities with (Voice protocol)\[\] support: voice\_text, voice\_publication
- MIT License

Dependencies
------------

[](#dependencies)

One PHP extension from the list:

- GMP (GNU Multiple Precision) — `sudo apt-get install libgmp-dev php-gmp`
- BCMath — `sudo apt-get install php-bcmath`

Most hosting providers have it turned on already, but if not found, check your control panel.

Thanks to third-party class developers:

-
-
-
-

Examples
--------

[](#examples)

Some examples have placeholders for private keys or accounts. Change them for successfull test.

Keys: init from hex, encode to wif, get public key from private, get encoded version, verify signature.

```
