PHPackages                             dmsysop/mikrotik-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dmsysop/mikrotik-api

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dmsysop/mikrotik-api
====================

Laravel Mikrotik API Wrapper - by JJSquady

12PHPCI failing

Since Oct 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dmsysop/mikrotik)[ Packagist](https://packagist.org/packages/dmsysop/mikrotik-api)[ RSS](/packages/dmsysop-mikrotik-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mikrotik Api for Laravel 5.X (Updated for 5.8+)
===============================================

[](#mikrotik-api-for-laravel-5x-updated-for-58)

WIP - Work In Progress

Instalation
-----------

[](#instalation)

Via composer:

```
composer require jjsquady/mikrotikapi

```

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

```
"require": {
    "jjsquady/mikrotikapi": "dev-master", //  dmsysop\MikrotikApi\Facades\MikrotikFacade::class

```

**Note:** for Laravel 5.4+ this package comes with Package Discovery enabled.

#### Publish the configuration file:

[](#publish-the-configuration-file)

```
php artisan vendor:publish --provider=dmsysop\MikrotikApi\MikrotikServiceProvider::class

```

Basic Usage:
------------

[](#basic-usage)

Set up the host and credentials into .env file:

```
   MK_API_HOST=
   MK_API_USER=
   MK_API_PASSWORD=
   MK_API_PORT=

```

```

// create a connection with Mikrotik Router

$conn = Mikrokit::connect()->getConnection();

if($conn->isConnected()) {
    // you have access to Commands
    // and can call from here...
}

```

Getting interfaces:
-------------------

[](#getting-interfaces)

```
$conn = Mikrokit::connect()->getConnection();

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

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

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

```

This project its a work in progress... and its in early developing phase. I really get thankful with ur contribution.

##### Created by jjsquady (Jorge Junior)

[](#created-by-jjsquady-jorge-junior)

##### (cc) 2017-2019

[](#cc-2017-2019)

##### License: MIT

[](#license-mit)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8caaca486cd1e9f886a76fa1b268194e0a1bc8432c28c3f0d27943ea7c77928c?d=identicon)[dmsysop](/maintainers/dmsysop)

---

Top Contributors

[![dmsysop](https://avatars.githubusercontent.com/u/11683202?v=4)](https://github.com/dmsysop "dmsysop (2 commits)")

### Embed Badge

![Health badge](/badges/dmsysop-mikrotik-api/health.svg)

```
[![Health](https://phpackages.com/badges/dmsysop-mikrotik-api/health.svg)](https://phpackages.com/packages/dmsysop-mikrotik-api)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
