PHPackages                             mivodev/laravel-mikrotik-api-ros6 - 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. [API Development](/categories/api)
4. /
5. mivodev/laravel-mikrotik-api-ros6

ActiveLibrary[API Development](/categories/api)

mivodev/laravel-mikrotik-api-ros6
=================================

Laravel wrapper for mivodev/mikrotik-api-ros6. Provides ServiceProvider, Facade, and config.

v0.2.1(1mo ago)0189MITPHPPHP ^8.2

Since May 28Pushed 1mo agoCompare

[ Source](https://github.com/mivodev/laravel-mikrotik-api-ros6)[ Packagist](https://packagist.org/packages/mivodev/laravel-mikrotik-api-ros6)[ Docs](https://github.com/mivodev/laravel-mikrotik-api-ros6)[ RSS](/packages/mivodev-laravel-mikrotik-api-ros6/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

[![Laravel Mikrotik API ROS6](https://raw.githubusercontent.com/mivodev/.github/main/profile/assets/img/logo-banner.png)](https://raw.githubusercontent.com/mivodev/.github/main/profile/assets/img/logo-banner.png)

Laravel Mikrotik API ROS6
=========================

[](#laravel-mikrotik-api-ros6)

[![PHP Version](https://camo.githubusercontent.com/d840cef9807c8f76051ad687841d67f4d830c84e0d83236968e53124ef6742d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e322d3838393242462e737667)](https://php.net)[![Laravel Version](https://camo.githubusercontent.com/0b4e3cd0b58a5aed9741b1d001457bde05a361cc1b1332c705ef704c225862a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25334525334431302e302d4646324432302e737667)](https://laravel.com)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

A clean, elegant Laravel wrapper for `mivodev/mikrotik-api-ros6`. Provides a ServiceProvider, Facade, and configuration file for seamless integration into your Laravel application.

Installation
------------

[](#installation)

```
composer require mivodev/laravel-mikrotik-api-ros6
```

Publish the configuration file:

```
php artisan vendor:publish --tag=mikrotik-ros6-config
```

Configuration
-------------

[](#configuration)

After publishing, you can configure your default router credentials in your `.env` file:

```
MIKROTIK_ROS6_HOST=192.168.1.1
MIKROTIK_ROS6_USERNAME=admin
MIKROTIK_ROS6_PASSWORD=rahasia
MIKROTIK_ROS6_PORT=8728
MIKROTIK_ROS6_SSL=false
MIKROTIK_ROS6_TIMEOUT=3
MIKROTIK_ROS6_ATTEMPTS=5
```

Usage
-----

[](#usage)

### 1. Dedicated Service Managers (Sugar Syntax)

[](#1-dedicated-service-managers-sugar-syntax)

Rather than executing raw CLI commands, you can use 22 dedicated service managers that cover all core ISP and network operations with clean, autocomplete-friendly PHP methods:

```
use Mivo\LaravelMikrotikRos6\Facades\MikrotikRos6;

// 1. Hotspot Management
$users = MikrotikRos6::hotspot()->getUsers();
MikrotikRos6::hotspot()->addUser([
    'name' => 'dyzulk',
    'password' => 'secret123',
    'profile' => 'Premium-1M'
]);

// 2. PPPoE Secret Management
$activeSessions = MikrotikRos6::pppoe()->getActive();
MikrotikRos6::pppoe()->disconnect('customer_123'); // Disconnects session by print-lookup + remove

// 3. Simple Queues (Bandwidth Limiting)
MikrotikRos6::queue()->addSimpleQueue([
    'name' => 'customer_123_limit',
    'target' => '192.168.88.10',
    'max-limit' => '1M/2M'
]);

// 4. Dual-Stack IPv4 / IPv6 Support
MikrotikRos6::ipAddress()->addV6('2001:db8::1/64', 'ether1'); // IPv6 Address assignment
MikrotikRos6::firewall()->addV6AddressList('blocked', '2001:db8::2'); // IPv6 address list isolation
```

Available managers: `arp()`, `bridge()`, `dhcp()`, `dns()`, `firewall()`, `hotspot()`, `interfaces()`, `ipAddress()`, `ipPool()`, `ntp()`, `pppoe()`, `queue()`, `radius()`, `routes()`, `routerUsers()`, `scripts()`, `sessionMonitor()`, `syslog()`, `system()`, `usageTracker()`, `vpn()`, `wireless()`.

### 2. Fluent Query Builder

[](#2-fluent-query-builder)

Execute targeted query commands easily using fluent builder syntax:

```
$users = MikrotikRos6::query('/ip/hotspot/user/print')
    ->where('profile', 'Premium-1M')
    ->whereRegex('name', '^dyzulk')
    ->select(['name', 'limit-uptime'])
    ->get();
```

### 3. Hybrid Multi-Tenant Connections

[](#3-hybrid-multi-tenant-connections)

Perfect for SaaS applications (like Mivo Enterprise) where router credentials are retrieved dynamically from the database:

```
use App\Models\Router;
use Mivo\LaravelMikrotikRos6\Facades\MikrotikRos6;

$router = Router::find(1);

// Establish dynamic connection from database model
$client = MikrotikRos6::connection([
    'host'     => $router->vpn_assigned_ip,
    'username' => $router->api_username,
    'password' => $router->api_password,
    'port'     => 8728,
]);

// Use any service manager on this specific router
$users = $client->hotspot()->getUsers();
```

---

4. Interactive Artisan Diagnosis
--------------------------------

[](#4-interactive-artisan-diagnosis)

Diagnose and ping router connections easily using the Artisan tool:

```
# 1. Ping using a database Router ID
php artisan mivo:ros6-ping 1

# 2. Ping a manual host using options/flags (supports IP or Hostname/Domain)
php artisan mivo:ros6-ping --host=192.168.88.1 --username=admin --password=secret --port=8728

# 3. Dynamic step-by-step interactive prompt (run without any arguments)
php artisan mivo:ros6-ping
```

For a list of options and usage details, run:

```
php artisan mivo:ros6-ping --help
```

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance89

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

58d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66510723?v=4)[DyzulkDev](/maintainers/dyzulk)[@dyzulk](https://github.com/dyzulk)

---

Top Contributors

[![dyzulk](https://avatars.githubusercontent.com/u/66510723?v=4)](https://github.com/dyzulk "dyzulk (12 commits)")

---

Tags

apilaravelSocketrouterosmikrotikros6

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/mivodev-laravel-mikrotik-api-ros6/health.svg)

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

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)

PHPackages © 2026

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