PHPackages                             ceseshi/vottun-php-sdk - 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. ceseshi/vottun-php-sdk

ActiveLibrary

ceseshi/vottun-php-sdk
======================

Vottun PHP SDK

0.2.0(2y ago)052LGPL-3.0-or-laterPHPPHP ^7.0|^8.0

Since Apr 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ceseshi/vottun-php-sdk)[ Packagist](https://packagist.org/packages/ceseshi/vottun-php-sdk)[ RSS](/packages/ceseshi-vottun-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Vottun PHP SDK
==============

[](#vottun-php-sdk)

The [Vottun](https://vottun.com/) PHP SDK provides an easy-to-use PHP interface for interacting with the [Vottun API](https://app.vottun.io/). Initially implemented for ERC20 and ERC721 token operations on Ethereum compatible blockchains, this SDK simplifies the process of integrating Vottun API functionalities into your PHP applications, including contract deploys, token transfers, querying balances and managing allowances.

[![License: LGPL v3](https://camo.githubusercontent.com/36060e4660b654fbd5098a652da33d470d1670d81964d9c21444d265404ce9da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4c47504c5f76332d626c75652e737667)](https://www.gnu.org/licenses/lgpl-3.0)

Author
------

[](#author)

- [César Escribano](https://github.com/ceseshi)

Features
--------

[](#features)

- Deploy and mint ERC20 tokens
- Deploy and mint ERC721 NFTs
- Deploy and mint ERC1155 NFTs
- Deploy and manage POAP tokens
- Transfer tokens
- Manage allowances
- Query token balances
- Support for big number operations
- Easy to integrate with PHP projects

Requirements
------------

[](#requirements)

- PHP &gt;=7.0
- Composer
- A Vottun App ID and API key ()

Folder structure
----------------

[](#folder-structure)

```
├── examples                  # Example scripts
├── lib                       # Libraries
│   └── Web3                  # web3p/web3.php library
│       └── Utils.php         # The web3.php Utils class, used to manage big numbers.
└── src                       # Source files
    ├── VottunClient.php      # The main VottunClient class, used to interact with the Vottun API.
    └── ERCv1                 # Vottun ERC v1 API clients
        ├── BaseClient.php    # The BaseClient class, used to interact with the Vottun API.
        ├── ERC20Client.php   # The ERC20Client class, used to interact with ERC20 tokens.
        ├── ERC721Client.php  # The ERC721Client class, used to interact with ERC721 tokens.
        ├── ERC1155Client.php # The ERC1155Client class, used to interact with ERC1155 tokens.
        └── POAPClient.php    # The POAPClient class, used to interact with POAP tokens.

```

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

[](#installation)

Run the following command in your project directory to add the Vottun PHP SDK as a dependency:

```
composer require ceseshi/vottun-php-sdk
```

Usage
=====

[](#usage)

Here's a quick start guide on how to use the Vottun PHP SDK in your project:

Initialize the Client
---------------------

[](#initialize-the-client)

```
require_once 'vendor/autoload.php';

use Vottun\VottunClient;
use Vottun\ERCv1\ERC20Client;

$vottunApiKey = 'your_api_key_here';
$vottunApplicationVkn = 'your_application_vkn_here';
$vottunClient = new VottunClient($vottunApiKey, $vottunApplicationVkn);
$network = 80002; // Amoy testnet
```

Deploy ERC20
------------

[](#deploy-erc20)

```
$erc20token = new ERC20Client($vottunClient, $network, null);

$name = 'MyToken';
$symbol = 'MTK';
$decimals = 18;
$initialSupply = strval(\Web3\Utils::toWei("1000000", 'ether')); // Initial supply in Wei

$transactionHash = $erc20token->deploy($name, $symbol, $decimals, $initialSupply);
$contractAddress = $erc20token->getContractAddress();

echo "Deploy hash: {$transactionHash}";
echo "Deploy address: {$contractAddress}";
```

Transfer ERC20
--------------

[](#transfer-erc20)

```
$contractAddress = 'your_contract_address_here';
$erc20token = new ERC20Client($vottunClient, $network, $contractAddress);

$recipientAddress = 'recipient_address_here';
$amount = strval(\Web3\Utils::toWei("100.001", 'ether')); // Amount in Wei

$transactionHash = $erc20token->transfer($recipientAddress, $amount);
$balance = $erc20token->balanceOf($recipientAddress);

echo "Transfer hash: {$transactionHash}";
echo "Recipient balance: {$balance}";
```

Mint ERC721
-----------

[](#mint-erc721)

```
$contractAddress = 'your_contract_address_here';
$erc721token = new ERC721Client($vottunClient, $network, $contractAddress);

$recipientAddress = 'recipient_address_here';
$ipfsUri = 'ipfs_uri_here';
$ipfsHash = 'ipfs_hash_here';
$royaltyPercentage = 10;
$tokenId = 1;

$transactionHash = $erc721token->mint($recipientAddress, $tokenId, $ipfsUri, $ipfsHash, $royaltyPercentage);
echo "Mint hash: {$transactionHash}";
```

Pending features
================

[](#pending-features)

- Web3 Core Client
- IPFS Client
- Custodied Wallets Client
- Balances Client
- Estimate Gas Client

Contributing
============

[](#contributing)

Contributions to the Vottun PHP SDK are welcome. Please ensure that your contributions adhere to the following guidelines:

- Fork the repository and create your branch from main.
- If you've added code that should be tested, add tests.
- Ensure the test suite passes.
- Issue that pull request!

Support
=======

[](#support)

If you encounter any issues or require assistance, please open an issue on the GitHub repository.

License
=======

[](#license)

This project is licensed under the LGPL. See the LICENSE file for details.

Acknowledgments
===============

[](#acknowledgments)

- Thanks to the [Vottun](https://vottun.com/) team for providing the API.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

2

Last Release

757d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bac9295bfeb1679948be3011495e0a0d2335c95de97f382f4434f86086305b7?d=identicon)[ceseshi](/maintainers/ceseshi)

---

Top Contributors

[![ceseshi](https://avatars.githubusercontent.com/u/426141?v=4)](https://github.com/ceseshi "ceseshi (12 commits)")

### Embed Badge

![Health badge](/badges/ceseshi-vottun-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ceseshi-vottun-php-sdk/health.svg)](https://phpackages.com/packages/ceseshi-vottun-php-sdk)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M673](/packages/laravel-socialite)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[packbackbooks/lti-1p3-tool

A library used for building IMS-certified LTI 1.3 tool providers in PHP.

51438.3k2](/packages/packbackbooks-lti-1p3-tool)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
