imeidb/sdk

Simple and lightweight SDK for working with ImeiDB API

Maintainers

Details

github.com/ImeiDB/SDK

Source

Issues

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 5

Open Issues: 1

pkg:composer/imeidb/sdk

dev-master 2021-08-24 14:23 UTC

This package is auto-updated.

Last update: 2025-09-24 23:36:42 UTC


README

IMEIDB - big database that allows you to decrypt IMEI mobile devices and receive information about them.

Capability

  • Retrieve information about current state of balance
  • Decode IMEI and retrieve information about it

Installation

Install basic component using composer

composer require imeidb/sdk

Examples

{YOUR_SECRET_TOKEN} - Your personal code for accessing the API, which can be found in your personal account. (Here: https://imeidb.xyz/user)

use imeidb\sdk\ImeiDBClient;

# Init 
$client = new ImeiDBClient('{YOUR_SECRET_TOKEN}');

# Get information about the current state of the account
$response = $client->getBalance();

# Decode the imei number
$response = $client->getDecode('352877111096108');

# Process results
if ($response->getStatusCode() === 200) {
    $data = json_decode($response->getBody()->getContents());
}

Basically information will be returned in JSON format. We support both JSON and XML:

use imeidb\sdk\ImeiDBClient;

# Using initialize method
$client = new ImeiDBClient('{YOUR_SECRET_TOKEN}', ImeiDBClient::FORMAT_XML);

# or using dynamically change format
$client->setFormat(ImeiDBClient::FORMAT_XML);