eiotclub / eiotclub-sdk
EIOTClub OpenAPI PHP SDK
1.0.1
2026-05-20 10:17 UTC
Requires
- php: ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^10.0
README
Install
composer require eiotclub/eiotclub-sdk
Initialize (Unified Entry)
use EIOTClub\Sdk\EIOTClub; $client = EIOTClub::create($appKey, $secret, [ 'base_uri' => 'https://oapi.eiotclub.com', 'timeout' => 10, ]);
Chained Calls by Module
Cards
$resp = $client->cards()->getAllCardInfo(pageNum: 1, pageSize: 500);
If an endpoint is not explicitly wrapped yet, you can call it by path directly (the SDK will automatically add appkey/timestamp/nonce/sign):
$resp = $client->cards()->request('/api/v3/card/getCardsInfo', [ 'iccid' => '89860xxxxxx' ]);
Other Modules
$client->packages()->request('/api/v3/package/order', [...]); $client->pools()->request('/api/v3/pool/list', [...]); $client->cloudEsim()->request('/api/v3/cloudEsim/list', [...]); $client->cdr()->request('/api/v3/cdr/query', [...]);
Notification Signature Verification (Verify Only)
$payload = json_decode(file_get_contents('php://input'), true) ?: []; if (!$client->verifyNotificationSignature($payload)) { http_response_code(401); exit('invalid sign'); }