Unique ID Generator Engine

Our engine is capable to generate unique numerical IDs without limitation on maximum value. The IDs are positive integers, incremented by 1 and are resilient.

IDs are uniquely assigned to a namespace. The engine has the default namespace “universe” and let the programmer to add other namespaces.

How you can use our engine

GetId

Optional Parameters:

namespace - destination of the ID. Can be any value(A-Za-z0-9) that has more than 3 chars.

output - JSON;XML, otherwise plain text.

Example:

http://webhead.ro/GetId.php?namespace=test&output=xml

You can obtain a universe ID (plain text) through the following link: http://www.webhead.ro/GetId.php.

IsValidId

Parameters:

namespace - namespace of the ID. Can be any value(A-Za-z0-9) that has more than 3 chars.

target - ID value. Any value, numerical format (0-9).

output - JSON;XML, otherwise plain text.

Example:

http://webhead.ro/IsValidId.php?namespace=test&target=100&output=xml

PHP code sample for generation of true unique id

<?php // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'http://www.webhead.ro/GetId.php?namespace=test&output=json' )); // Send the request & decode response to $resp $resp = json_decode(curl_exec($curl)); // Echo Id echo $resp->{'test'}; // Close request to clear up some resources curl_close($curl); ?>

Questions?

Write to me at: gabriel.dina (at) gmail.com.