PHP code example of phillipsnick / pfsense-wol
1. Go to this page and download the library: Download phillipsnick/pfsense-wol 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/ */
phillipsnick / pfsense-wol example snippets
$service = new \Pfsensewol\Wol(array(
'https' => true,
'pfsense' => 'pfsense.hostname',
'username' => 'pfSenseUsername',
'password' => 'pfSensePassword'
));
$service->send('MacAddress', 'opt4');