定制 mapik/radius-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mapik/radius-client

最新稳定版本:1.1.0

Composer 安装命令:

composer require mapik/radius-client

包简介

A PHP RADIUS client implementation

关键字:

README 文档

README

Source Code Latest Version Software License Build Status Coverage Status Total Downloads

mapik/radius-client is a PHP 5.5+ RADIUS client implementation.

Installation

The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require mapik/radius-client

Usage

<?php

use Mapik\RadiusClient\Client;
use Mapik\RadiusClient\Packet;
use Mapik\RadiusClient\PacketType;

$client = new Client('udp://127.0.0.1:1812', /* timeout */ 2);
$response = $client->send(new Packet(PacketType::ACCESS_REQUEST(), /* secret */ 'xyzzy5461', [
    'User-Name' => 'nemo',
    'User-Password' => 'arctangent',
]));

if ($response->getType() !== PacketType::ACCESS_ACCEPT()) {
    throw new \RuntimeException('Unable to authenticate as user "nemo"');
}

Dictionary

The following RADIUS dictionaries are supported out-of-the-box:

  • MikroTik
  • RFC 2865
  • RFC 2866
  • RFC 2867
  • RFC 2868
  • RFC 2869
  • RFC 3162
  • RFC 3576
  • RFC 3580
  • RFC 4072
  • RFC 4372
  • RFC 4603
  • RFC 4675
  • RFC 4679
  • RFC 4818
  • RFC 4849
  • RFC 5090
  • RFC 5176

Custom Dictionary

Additional attributes can be registered by creating a custom dictionary class that implements Mapik\RadiusClient\DictionaryInterface.

Copyright and License

The mapik/radius-client library is copyright © Jonas Stendahl and licensed for use under the MIT License (MIT). Please see LICENSE for more information.

统计信息

  • 总下载量: 5.3k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固