eiotclub/eiotclub-sdk

EIOTClub OpenAPI PHP SDK

Maintainers

Package info

github.com/XthingsJacobs/eiotclub-eiotclub-sdk

pkg:composer/eiotclub/eiotclub-sdk

Transparency log

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-05-20 10:17 UTC

This package is auto-updated.

Last update: 2026-07-21 02:02:12 UTC


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');
}