esimcard / esimcard-sdk
ESIM Card SDK
v1.08
2024-09-23 08:58 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^7.0.1
README
Certainly! Here's an updated version of the README file template for your esimcard-php-sdk
project:
eSIM Card PHP SDK
Introduction
The eSIM Card PHP SDK provides a convenient way to integrate eSIM functionality into PHP applications. It allows you to manage eSIM profiles, perform activation, and handle eSIM lifecycle events through a simple and intuitive API.
Features
- Packages View: View available eSIM packages.
- Pricing View: Retrieve pricing information for eSIM services.
- My Bundles: Manage your purchased eSIM bundles.
- Buy eSIM: Purchase eSIM profiles through the SDK.
- eSIM Details: Fetch details of specific eSIM profiles.
Installation
You can install the SDK via Composer:
composer require esimcard/esimcard-sdk
Usage
Initialize the SDK
require_once 'vendor/autoload.php'; use Esimcard\EsimcardSdk\EsimCard; $token = 'get token from portal' $client = new EsimCard($token,$sandbox = false);
Example: Get an eSIM Pricing
try { $pricing = $client->pricing(); print_r($pricing); } catch (\Exception $e) { echo "Failed to create eSIM profile: " . $e->getMessage(); }
Support
For support or inquiries, please contact us at support@esimcard.com.
Feel free to further customize the sections and details based on your specific SDK functionalities and documentation needs.