Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 49 | All time: 10,716 This week: 660 |
Version | License | PHP version | Categories | |||
devtools360-macaddre 1.0.0 | GNU General Publi... | 5 | XML, PHP 5, Hardware |
Description | Author | |
This class can find the vendor of a device with given Mac address. |
Using this package you can lookup for vendor/company from mac address prefix.<br/> The package will search through the XML file of vendorMacs.xml for the company name.
<?php
require_once __DIR__ . '/vendor/autoload.php';
use \Devtools360\MacAddressLookup;
$file_path ="REPLACE THIS WITH THE XML FILE PATH";
$mac = new MacAddressLookup($file_path);
echo $mac->lookup("FC:FE:77");
?>
This package will work out of the box with Laravel framework, just follow the above steps for installing the package, and to use it in any class just add the following namespace.<br/>
use \Devtools360\MacAddressLookup;
<br/>
Then you can initiate the class or use the dependency injection of Laravel to initiate it for you.
If this package was used with Laravel dependency injection it will not set the path for you, so you can easily call setFilePath to do the same as follows.
$mac = new MacAddressLookup();
$mac->setFilePath("FILE PATH HERE");
Please feel free to open a bug report or pull request to this repo.
The website DevTools360 for providing the updated cisco vendorMacs.xml file.<br/> Please check the awesome tools such as Macaddress Lookup and QR code generator from the same site.
Files (3) |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
readme.md | Doc. | Read me |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
devtools360-macaddre-2020-12-21.zip 2KB | |
devtools360-macaddre-2020-12-21.tar.gz 1KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.