Download the PHP package bober/wifi-protocol without Composer

On this page you can find all versions of the php package bober/wifi-protocol. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wifi-protocol

WIFI-Protocol

WIFI-Protocol 是提供WIFI以Web portal方式提供身份验证,授权,记帐和审计服务

的运行环境要求LAMP/LNMP(Linux>=6.4 Apache>=2.2 Nginx>=1.14 Mysql>=5.6 PHP>=5.4) 详细开发文档参考 AAAA-WIFI完全开发手册


一、使用方法

1.1、安装

 composer require bober/wifi-protocol ~1.0.0-beta

1.2、开发文档

1.2.1、github地址

github.com/Bober-L/wifiprotocol

1.3、使用方法

1.3.1、Portal协议

//初始化
   /**
      * Portal constructor.
      * 初始化协议
      * @param int $isPAP PAP认证=1 CHAP认证=0
      * @param string $serveIp 用户IP
      * @param int $servePort
      * @param string $serveProtocol
      * @param int $serveTimeOut
      * @throws \Exception
      */
 $Portal = new Portal(1,$nasip,2000);

//上线
 $data = $Portal->online($userip, $username, $userpass);
    /**
      * Potal认证
      * @param null $IP 服务端IP
      * @param null $userIp 用户IP
      * @param null $userName 用户账号
      * @param null $userPass 用户密码
      * @param bool $isPAP 认证类型
      * @return array|bool
      * @throws \Exception
      */

 //下线   
  $data=$Portal->offline($userip);  
  /**
    * 下线
    * @param null $userIp
    * @param bool $isPAP
    * @return array|bool
    * @throws \Exception
    */

   //MAC无感知认证后台进程监听 
  $Portal->listen("wifi\\protocol\\Portal", "callBackFun")
  /**
     * 后台进程  MAC无感知认证
     * @param string $callClass
     * @param string $callAction
     * @return mixed
     * @throws \Exception
     */

二、目录结构

初始的目录结构如下:

wifiprotocol  目录名称(扩展类库)
├─auto          自动加载文件目录
│  │ 
│  ├─config             配置文件目录
│  │  ├─xxx.php         xxx文件
│  │  ├─xxx.php         xxx文件
│  │  └─xxx.php         xxx文件
│  ├─extra              扩展文件目录
│  │  ├─xxx.php         xxx文件
│  │  ├─xxx.php         xxx文件
│  │  └─xxx.php         xxx文件
│  ├─base.php            基数函数文件
│  ├─common.php          公共函数文件
│  ├─config.php          自定义配置文件
│  └─helper.php          自定义函数
│
├─socket           Socket协议目录
│  ├─TCP.php            TCP协议
│  └─UDP.php            UDP协议
│
├─portal           Portal协议目录
│  ├─xxx.php            xxx文件
│  └─xxx.php            xxx文件
│
├─radius           Radius协议目录
│  ├─xxx.php            xxx文件
│  └─xxx.php            xxx文件
│
├─library            工具类库目录
│  ├─xxx.php            xxx类库
│  └─Bytes.php          Bytes字节操作类库
│
├─extend                扩展类库目录
├─Base.php              基础类文件
├─Portal.php            Portal协议文件
├─Radius.php            Radius协议文件
├─Socket.php            Socket协议文件
├─LICENSE.txt           授权说明文件
├─README.md             README 文件
│

三、命名规范

遵循PSR-2命名规范和PSR-4自动加载规范,并且注意如下规范:

目录和文件

函数和类、属性命名

四、参与开发

请参阅 AAAA-WIFI 核心框架包

五、版权信息

AAAA-WIFI遵循Apache2开源协议发布,并提供免费使用。

本项目包含的第三方源码和二进制文件之版权信息另行标注。

版权所有Copyright © 2019-2020 by AAAA-WIFI DTYPT All rights reserved。

AAAA-WIFI® DTYPT(@all)。

更多细节参阅 LICENSE.txt


All versions of wifi-protocol with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bober/wifi-protocol contains the following files

Loading the files please wait ....