davidjeddy/yii2-freeradius-module

Module to interface with a FreeRADIUS server.

0.1.1 2017-05-15 15:38 UTC

This package is auto-updated.

Last update: 2024-11-05 18:39:10 UTC


README

Module to interface with a FreeRADIUS server

Badges

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

SensioLabsInsight

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's composer.json, then composer install.

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/