定制 anovob/mikrotik-api 二次开发

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

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

anovob/mikrotik-api

Composer 安装命令:

composer require anovob/mikrotik-api

包简介

Mikrotik API PHP Library for working with RouterOS API

README 文档

README

Instalation

Via composer:

composer require anovob/mikrotik-api

Or manually insert this block into your composer.json in require section:

"require": {
    "anovob/mikrotik-api": "dev-master", // <- this line
}

Basic Usage:

use MikrotikAPI\Roar\Roar;

// create a connection with Mikrotik Router

$conn = Roar::create(['host_ip', 'port', 'username', 'password']);
 
if($conn->isConnected()) {
    // you have access to Commands
    // and can call from here...
}

Getting interfaces:

use MikrotikAPI\Roar\Roar;
use MikrotikAPI\Commands\Interfaces;

$conn = Roar::create(['host_ip', 'port', 'username', 'password']);
 
if($conn->isConnected()) {
    $iComm = new Interfaces($conn);
    $interfaces = $iComm->getAll() // returns all interfaces as array
    
    // you can send it to view 
    return view("<some_view>", [
        'interfaces' => $interfaces
    ]);
}
Created by anovob (A S M Saief)
(cc) 2018
License: MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固