2017 © Pedro Peláez
 

library mikrotikapi

An Mikrotik Api Wrapper

image

jjsquady/mikrotikapi

An Mikrotik Api Wrapper

  • Wednesday, November 22, 2017
  • by jjsquady
  • Repository
  • 3 Watchers
  • 6 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 15 Versions
  • 28 % Grown

The README.md

Mikrotik Api for Laravel 8.x

WIP - Work In Progress, (*1)

Instalation

Via composer:, (*2)

composer require jjsquady/mikrotikapi

Or manually insert this block into your composer.json in require section:, (*3)

"require": {
    "jjsquady/mikrotikapi": "dev-master", // <- this line
}

Configuration on Laravel (< 5.4):

Insert into config/app.php in providers array:, (*4)

jjsquady\MikrotikApi\MikrotikServiceProvider::class

Use the Facade:

Insert into config/app.php in facades array:, (*5)

'Mikrotik' => jjsquady\MikrotikApi\Facades\MikrotikFacade::class

Note: for Laravel 5.4+ this package comes with Package Discovery enabled., (*6)

Publish the configuration file:

php artisan vendor:publish --provider=jjsquady\MikrotikApi\MikrotikServiceProvider

Basic Usage:

Set up the host and credentials into .env file:, (*7)

```$bash MK_API_HOST= MK_API_USER= MK_API_PASSWORD= MK_API_PORT=, (*8)


```$php // create a connection with Mikrotik Router $conn = Mikrotik::connect()->getConnection(); if($conn->isConnected()) { // you have access to Commands // and can call from here... }

Getting interfaces:

```$php $conn = Mikrotik::connect()->getConnection();, (*9)

if($conn->isConnected()) { // Get all interfaces $interfaces = Interfaces::bind($conn)->get();, (*10)

// get() returns a Collection and you can use all methods available

// you can send it to view 
return view("<some_view>", [
    'interfaces' => $interfaces
]);

} ```, (*11)

This project its a work in progress... and its in early developing phase. I really get thankful with ur contribution., (*12)

Created by jjsquady (Jorge Junior)
(cc) 2017-2019
License: MIT

The Versions

22/11 2017
21/04 2017
21/04 2017
19/04 2017
19/04 2017

0.3.2

0.3.2.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.3.1

0.3.1.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.3.0

0.3.0.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.2.9

0.2.9.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.2.8

0.2.8.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.2.7

0.2.7.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.2.6

0.2.6.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.2.5

0.2.5.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2017

0.2.0

0.2.0.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

18/04 2017

0.1.1

0.1.1.0

An Mikrotik Api Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires