yii2-freeradius-module ¶
Module to interface with a FreeRADIUS server
Badges ¶
REQUIREMENTS ¶
PHP 7+
MySQL 5.5+
FreeRadius
Composer
Yii 2+ (advanced tempplate recommended)
INSTALLATION ¶
cd {project root}
- Run
composer require davidjeddy/yii2-freeradius-module
in terminal- OR add
"davidjeddy/yii2-freeradius-module": "dev-master@dev"
to your project'scomposer.json
, thencomposer install
.
- OR add
USAGE ¶
Add the module to the configuration
return [
...
'modules' => [
...
'free-radius' => [
'class' => davidjeddy\freeradius\Module::class,
],
...
],
];
To add to a typical AdminLTE admin panel:
Edit ./backend/views/layouts/common.php and add the following inside Menu::widget([ ... ])
`
[
'label' => Yii::t('backend', 'Free Radius'),
'icon' => '<i class="fa fa-id-card-o"></i>',
'url' => ['/free-radius/default/index'],
'visible' => Yii::$app->user->can('administrator')
],
# TESTING
TODO
# Misc
If the server does not yet have a `RadCheck` table from FreeRadius, run
the modules migration from the project root:
`php ./console/yii migrate/up --migrationPath=./vendor/davidjeddy/yii2-freeradius-module/migration/`
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.