PHP code example of esimcard / esimcard-sdk
1. Go to this page and download the library: Download esimcard/esimcard-sdk 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/ */
esimcard / esimcard-sdk example snippets
use Esimcard\EsimcardSdk\EsimCard;
$token = 'get token from portal'
$client = new EsimCard($token,$sandbox = false);
try {
$pricing = $client->pricing();
print_r($pricing);
} catch (\Exception $e) {
echo "Failed to create eSIM profile: " . $e->getMessage();
}