PHP code example of devtools360 / macaddresslookup

1. Go to this page and download the library: Download devtools360/macaddresslookup library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

devtools360 / macaddresslookup example snippets



    Devtools360\MacAddressLookup;
    $file_path ="REPLACE THIS WITH THE XML FILE PATH";
    $mac = new MacAddressLookup($file_path);
    echo $mac->lookup("FC:FE:77");