mivodev/laravel-radius
Composer 安装命令:
composer require mivodev/laravel-radius
包简介
Laravel Wrapper for Mivo Radius UDP Client with Hybrid Connection Manager.
README 文档
README
Mivo Laravel Radius Wrapper
A Laravel Facade and Hybrid Connection Manager for mivodev/radius.
This package simplifies the integration of the UDP Radius client into Mivo Enterprise by providing dynamic configuration management (e.g. connecting to different Edge Routers dynamically) and a clean, static interface.
Installation
composer require mivodev/laravel-radius
Features
- Hybrid Connection Manager: Seamlessly switch between default (
.env) and dynamic configuration arrays fetched from the database. - Facade: Intuitive
Radius::interface.
Usage
Using the Default Connection
use Mivo\LaravelRadius\Facades\Radius; // Disconnect a user on the default server configured in .env $success = Radius::disconnectUser('john_doe');
Using a Dynamic Connection (Mivo Enterprise Multi-Tenant)
use Mivo\LaravelRadius\Facades\Radius; // Fetch NAS IP dynamically from the database $nasConfig = [ 'server' => '10.0.0.5', 'secret' => 'nas_secret_key', 'port' => 3799, ]; // Disconnect user on a specific NAS $success = Radius::connect($nasConfig)->disconnectUser('john_doe');
统计信息
- 总下载量: 187
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-27
