PHP code example of peerme / mx-sdk-laravel
1. Go to this page and download the library: Download peerme/mx-sdk-laravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
peerme / mx-sdk-laravel example snippets
use MultiversX\Multiversx;
// retrieve fresh responses each time
$api = Multiversx::api();
// or retrieve cached responses subsequently for 1 hour
$api = Multiversx::apiWithCache(expiresAt: now()->addHour());
[
'address' => ['
bash
php artisan vendor:publish --provider="MultiversX\ServiceProvider" --tag="config"