Download the PHP package kmcpg/multiversx-sdk-laravel without Composer
On this page you can find all versions of the php package kmcpg/multiversx-sdk-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kmcpg/multiversx-sdk-laravel
More information about kmcpg/multiversx-sdk-laravel
Files in kmcpg/multiversx-sdk-laravel
Package multiversx-sdk-laravel
Short Description Laravel SDK for interacting with the MultiversX blockchain.
License MIT
Informations about the package multiversx-sdk-laravel
MultiversX SDK for Laravel
A Laravel SDK for interacting with the MultiversX blockchain (formerly Elrond). PS :Initially made for intern usage it still in alpha use with cautions.
Installation
The service provider and facade are auto-discovered.
Configuration
Publish the configuration file:
This will create a config/multiversx.php file. You can customize the network, API URL, and default transaction parameters:
Set your environment variables in .env if needed:
Usage
You can use the Multiversx facade or inject the specific services you need.
Utility Class (Converter)
The SDK provides a KmcpG\MultiversxSdkLaravel\Utils\Converter class with static methods for common tasks:
Wallet Operations (via Facade or WalletService)
Transaction Operations (via TransactionService)
Inject KmcpG\MultiversxSdkLaravel\Services\TransactionService.
Token Operations (via TokenService)
Inject KmcpG\MultiversxSdkLaravel\Services\TokenService.
Testing
This SDK includes both unit and integration tests using PHPUnit.
Run all tests:
Run only unit tests:
Run only integration tests:
Integration Test Requirements
The integration tests (tests/Integration) interact with the MultiversX Devnet. To run them successfully, you need valid Devnet credentials set as environment variables in your .env file or your system environment:
MULTIVERSX_TEST_SENDER_PK: Required. The 64-character hexadecimal private key of a Devnet wallet holding some test xEGLD. This must be the raw hex key, NOT a path to a PEM file or its content.MULTIVERSX_TEST_SENDER_ADDRESS: Required. The correspondingerd1...address for the sender private key.MULTIVERSX_TEST_RECEIVER_ADDRESS: Required. Another validerd1...Devnet address to receive test xEGLD.
If these variables are not set, the integration tests that require sending a transaction will be skipped. You can obtain Devnet credentials and test xEGLD from the MultiversX Devnet Faucet.
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
License
MIT
All versions of multiversx-sdk-laravel with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
bitwasp/bech32 Version ^0.0.1
kornrunner/keccak Version ^1.1
simplito/elliptic-php Version ^1.0