Ratings | | Unique User Downloads | | Download Rankings |
Not enough user ratings | | Total: 183 | | All time: 8,683 This week: 78 |
|
Description | | Author |
This class can get vendor information from mac address.
It takes a given mac address and sends a HTTP request to https://macvendors.co to get information of the device vendor.
The class can also take the vendor company name and obtains the mac address prefix. Innovation Award
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 MacVendors.co Web service.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 2x |
|
Example
<?php
include "src/MacvendorsApi.php";
use \macvendors_co;
$api = new \macvendors_co\MacVendorsApi();
/**
Get And parse data to array
**/
$vendor = $api->get_vendor ("08:74:02:00:00:00",'csv');
echo $vendor['company'].'<br/>';
echo $vendor['mac_prefix'].'<br/>';
echo $vendor['address'];
//Get raw data XML
$vendor = $api->get_vendor_xml("08:74:02:00:00:00");
echo '<pre>'.$vendor.'</pre>' ;
//Get raw data CSV
$vendor = $api->get_vendor_csv("08:74:02:00:00:00");
echo '<pre>'.$vendor.'</pre>' ;
//Get Raw data JSON
$vendor = $api->get_vendor_json("08:74:02:00:00:00");
echo '<pre>'.$vendor.'</pre>' ;
//get raw data PIPE
$vendor = $api->get_vendor_pipe("08:74:02:00:00:00");
echo '<pre>'.$vendor.'</pre>' ;
|
Details
Macvendors.co API in PHP
Overview
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 macvendors.co API.
This class support alot of methods, please use the attached example.php file within this repository.
Support
For support please contact us via http://macvendors.co
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.