ocolin / maclookup
Basic tool to look up vendor of a MAC address
Installs: 382
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ocolin/maclookup
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.3
README
A small tool for looking up the Vendor of a given MAC address.
Requirements
PHP 8.3 If you want to update the vendor list, you will need the correct file permissions to write to the src directory.
Usage
Example code using the lookup function.
$vendor_info = MacLookup::lookup(
mac: '54:91:AF:B2:02:5B'
);
Output Example
Example of the output of a MAC lookup query.
stdClass Object
(
[registry] => MA-M
[assignment] => 5491AFB
[name] => Hyperconn Pte. ltd
[address] => 128 Tanjong Pagar Road Singapore(088535) Singapore SG 088535
)
Updating Vendor list
This will download and parse a new vendor list from the IEEE website.
$maclookup = new MacLookup();
$macLookup->update();