PHP Classes

PHP Mac Address Vendor Lookup: Get vendor information from mac address

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 182 All time: 8,695 This week: 140Up
Version License PHP version Categories
mac-vendors 1.0GNU General Publi...5.3Networking, PHP 5, Web services


This class can get vendor information from mac address.

It takes a given mac address and sends a HTTP request to to get information of the device vendor.

The class can also take the vendor company name and obtains the mac address prefix.

Innovation Award
PHP Programming Innovation award nominee
January 2016
Number 5

Prize: SourceGuarding PHP encoder tool
Mac addresses are numbers that are associated to each hardware device.

The Mac addresses are formed in part with a number that identifiers the vendor that produced the device.

This class can be used to discover the company that produced a device using its mac address by calling the Web service.

Manuel Lemos
Picture of Samy Massoud
  Performance   Level  
Name: Samy Massoud <contact>
Classes: 5 packages by
Country: Egypt Egypt
Age: 39
All time rank: 245024 in Egypt Egypt
Week rank: 225 Up1 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 2x


include "src/MacvendorsApi.php";
use \

$api = new \macvendors_co\MacVendorsApi();
Get And parse data to array

$vendor = $api->get_vendor ("08:74:02:00:00:00",'csv');

//Get raw data XML
$vendor = $api->get_vendor_xml("08:74:02:00:00:00");
'<pre>'.$vendor.'</pre>' ;
//Get raw data CSV
$vendor = $api->get_vendor_csv("08:74:02:00:00:00");
'<pre>'.$vendor.'</pre>' ;
//Get Raw data JSON
$vendor = $api->get_vendor_json("08:74:02:00:00:00");
'<pre>'.$vendor.'</pre>' ;
//get raw data PIPE
$vendor = $api->get_vendor_pipe("08:74:02:00:00:00");
'<pre>'.$vendor.'</pre>' ;

Details API in PHP


Lookup any vendor using mac address,or search by company name or address to get it's mac prefix.

This class is the implementation of API.

This class support alot of methods, please use the attached example.php file within this repository.


For support please contact us via

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Composer File
Accessible without login Plain text file example.php Example Example how to use class
Accessible without login Plain text file Data read me file

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file MacvendorsApi.php Class Source code

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,695
This week:140Up