PHP code example of mivodev / radius
1. Go to this page and download the library: Download mivodev/radius 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/ */
mivodev / radius example snippets
use Mivo\Radius\RadiusClient;
$client = new RadiusClient('192.168.1.1', 'secret', 3799); // Port 3799 for CoA/PoD
$response = $client->disconnectUser('john_doe');
if ($response) {
echo "User disconnected successfully!";
}