2017 © Pedro Peláez
 

library mikrotik-api

Mikrotik API PHP Library for working with RouterOS API

image

xwiz/mikrotik-api

Mikrotik API PHP Library for working with RouterOS API

  • Thursday, May 5, 2016
  • by xwiz
  • Repository
  • 2 Watchers
  • 1 Stars
  • 127 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 27 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

mikrotik-api

Mikrotik API PHP Library, (*1)

This composer package for the Mikrotik API enables you to easily control Mikrotik routers via the PHP API. This package was originally developed by nunenuh but seems to be no longer active hence the reason for this., (*2)

How to Install

composer require xwiz/mikrotik-api

How to Use

Specify the desired namespaces in your class, (*3)

use MikrotikAPI\Talker\Talker;
use MikrotikAPI\Commands\IP\Hotspot\HotspotUserProfiles;

Initialize the talker class and dump hotspot user profiles (assuming you have hotspot setup), (*4)

$talker = Talker::create('192.168.88.1', 'admin', '');
$profiles = new HotspotUserProfiles($talker);
var_dump($talker->getAll());//prints an array of installed hotspot user profiles

Contributing

Please create an issue to discuss or pull request accordingly., (*5)

The Versions

05/05 2016

dev-master

9999999-dev

Mikrotik API PHP Library for working with RouterOS API

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api mikrotik routeros