Howto?
As always you can download the source code of this project right here: [macAddressVendorLookup-0.3.7z]
Alternatively, you could fetch my current [vendorPrefixes.db sqlite database.
Or, if you're in a real hurry, you could use my lookup api to incorporate vendor lookup right into your project.
Example:
<?php
// mac-address (or prefix = first 6 digits, not counting colons) to look up:
$macaddress = "01:23:45:67:89:AB";
$curlHandle = curl_init();
curl_setopt($curlHandle, CURLOPT_URL, 'https://cloudwork-orange.com/projects/macAddressLookup/?format=json&macaddress=' . rawurlencode($macaddress));
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
$response = json_decode(curl_exec($curlHandle), true);
curl_close($curlHandle);
unset($curlHandle);
if(false !== $response && 'success'==$response['status']) {
// process data …
var_dump($response['result']);
} else {
// error retrieving data …
echo 'Lookup failed!';
}