Download the PHP package easybdit/laravel-mikrotik without Composer

On this page you can find all versions of the php package easybdit/laravel-mikrotik. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-mikrotik

easybdit/laravel-mikrotik

A Laravel package for talking to a MikroTik RouterOS device over its REST API. It gives you a typed, Laravel-friendly way to read a router's status and (for a growing, deliberately small set of menus) change its configuration, plus optional database-backed monitoring (snapshots, threshold alerts, incidents, notifications) built on top of the same reads.

Current state: P1 through P25. Everything documented below is implemented and tested with HTTP fakes; where a feature is marked "real-device verified" that is a recorded claim from the project's CHANGELOG (the repository stores no device logs), and anything marked not device-tested has only ever run against HTTP fakes. Planned future work is listed separately in Roadmap.

1. What this package is

If you've never used this package before, here is the shape of it:

Capabilities fall into three groups:

Read capabilities — get information from the router:

Monitoring — optional, database-backed, built entirely on the reads above (nothing here talks to RouterOS on its own beyond what resource()/ health()/interfaces() already do):

Write capabilities — change the router's configuration:

2. Requirements

3. Installation

Laravel's package auto-discovery registers MikrotikServiceProvider and the Mikrotik facade automatically — no manual provider registration needed.

Publish the config file:

This creates config/mikrotik.php. Monitoring (snapshots/rules/alerts/ incidents) needs its own migrations, published separately — see Monitoring below; skip that step if you only need the read/write RouterOS API and not the database-backed monitoring features.

4. Basic Configuration

Set your router's connection details in your application's .env (never commit this file to Git):

Every one of these maps directly to a key in config/mikrotik.php (env() calls only — nothing here is invented):

.env variable Config key Default
MIKROTIK_CONNECTION mikrotik.default default
MIKROTIK_HOST mikrotik.connections.default.host (required, no default)
MIKROTIK_PORT mikrotik.connections.default.port 443
MIKROTIK_USERNAME mikrotik.connections.default.username admin
MIKROTIK_PASSWORD mikrotik.connections.default.password ''
MIKROTIK_VERIFY_TLS mikrotik.connections.default.verify_tls true
MIKROTIK_TIMEOUT mikrotik.connections.default.timeout 10 (seconds)
MIKROTIK_RETRY_TIMES mikrotik.connections.default.retry.times 0 (no retry)
MIKROTIK_RETRY_SLEEP mikrotik.connections.default.retry.sleep 0 (milliseconds)

To monitor more than one router, add additional named entries directly in config/mikrotik.php (not .env — Laravel config files, not .env, are where you define multiple connections, the same way config/database.php works):

Never commit real credentials. Keep .env out of version control (Laravel's default .gitignore already does this) and never paste a real password into a bug report, log message, or this package's tests.

5. First Connection

The smallest working example:

Every field on every DTO is nullable (except an item's own .id where one exists) — a field a particular RouterOS build/board doesn't report simply comes through as null instead of raising an error. $dto->raw (or ->raw() on a collection-style object) always has the complete, untouched response if you need a field this package doesn't explicitly type yet.

resource()/health() return a single object; interfaces()/logs() return an iterable collection-like object; see Architecture overview for how these fit together, and the sections below for interfaceRate(), logs(), and the write APIs.

Interfaces and traffic counters

Traffic counters are cumulative, not live. rxByte/txByte/ rxPacket/txPacket/rxError/txError/rxDrop/txDrop are totals since the interface's counters were last reset — in practice, since the last reboot. A reboot resets these to zero; a delta computed across a reboot reads as negative/nonsensical, not as an error — this package does not detect or guard against that. For a live rate, either use interfaceRate() below, or poll interfaces() twice yourself:

One-shot interface rate

This calls RouterOS's /interface monitor-traffic ... once — a single instantaneous rate reading RouterOS computes over a brief internal sampling window, not a live/streaming subscription. Each call makes a fresh request; nothing is cached or held open. An invalid interface name throws RouterOsException with RouterOS's own message.

Logs

$entry->time/$entry->topics are kept exactly as RouterOS returns them and are not parsed — RouterOS's console timestamp omits the date for today's entries and omits the year entirely, so there is no single safe format to normalize into. Filtering only supports simple equality (?field=value); RouterOS's console-only ~ (contains/regex) operator is not supported over REST.

6. Generic Menu API

resource()/health()/interfaces()/interfaceRate()/logs() are named, typed methods for five specific menus. For anything else, menu() gives generic read-only access to any RouterOS REST menu:

Credential redaction (P25): rows returned by menu()->get(), find() and query() have well-known credential fields removed by default (password, secret, ipsec-secret, psk, preshared-key, wpa-pre-shared-key, wpa2-pre-shared-key, private-key, passphrase, authentication-password, encryption-password). This is name-based and best effort. menu('ppp/secret')->withSecrets() restores the old raw behaviour for that instance.

Advanced query/filtering (P23)

get()'s simple ?field=value filtering can only express "AND" — every condition must match. For anything get() can't express (like "OR"), or to limit which fields RouterOS returns, query() uses RouterOS REST's own documented .query/.proplist mechanism:

7. IP Address Management

$router->ip()->addresses() maps to RouterOS's /ip/address menu — the first typed read+write resource, built on P12's internal write transport:

A safe, documentation-only example for trying this yourself: 203.0.113.99/32 is reserved by RFC 5737 specifically for documentation — it is never a real, routable address on any real network, which is why it is used throughout this README and in this package's own real-device tests. It is still a write operation against your real router's configuration — see Real MikroTik Testing Guide before trying it, and never run this kind of example against a production address, interface, or router you cannot afford to misconfigure.

7b. Interface management (P14)

A second typed read+write resource, alongside ip() above — $router->interface() maps to RouterOS's /interface menu. Named singular (interface(), not interfaces()) specifically to avoid any confusion with the unrelated, read-only interfaces() from section 5 — that method is completely unchanged:

7c. Firewall filter management (P15)

$router->firewall()->filter() maps to RouterOS's /ip/firewall/filter menu — full list()/find()/add()/update()/remove()/enable()/ disable():

Confirmed against a real device: RouterOS strips a /32 (single-host) suffix from src-address/dst-address on write — adding '203.0.113.99/32' reads back as "203.0.113.99" on the next find(). This is RouterOS's own behavior, not something this package controls.

This changes firewall behavior on your router — treat it with real caution. See Real MikroTik Testing Guide before testing against a real device: this package's own tests only ever use a rule created disabled, scoped to a documentation-only address that can never match real traffic, and removed immediately after.

7d. DHCP management (P16)

$router->dhcp() is a namespace object for two menus:

Both support full list()/find()/add()/update()/remove()/ enable()/disable(). add() requires name (server) / address (lease). Most leases on a running network are dynamic (RouterOS-managed) — this package does not special-case dynamic vs. static leases; RouterOS itself governs what a write against one does.

Never touch an active production DHCP server or an existing lease. This package's own real-device testing only ever added a disabled test server (kept disabled for its entire test, on an idle interface) and a test lease bound to a fake MAC address no real device uses.

7e. PPP/PPPoE secret management (P17)

$router->ppp()->secrets() maps to RouterOS's /ppp/secret menu — full list()/find()/add()/update()/remove()/enable()/disable():

Security — read this before using this module. RouterOS's own REST API returns a secret's password in plain text on every GET/PUT/PATCH response — confirmed directly against a real device. This package does not carry that value for you:

Never modify or delete an existing PPP/PPPoE user. Use a randomly generated, clearly temporary username for any testing, and never print, log, or commit a real password.

7f. Simple Queue management (P18)

$router->queue()->simple() maps to RouterOS's /queue/simple menu — full list()/find()/add()/update()/remove()/enable()/disable():

maxLimit/priority are kept as RouterOS's own raw string (e.g. "10M/10M") rather than parsed — this package does not invent a split/parse convention RouterOS's documentation doesn't specify.

7g. IP Pool management (P19)

$router->ip()->pools() maps to RouterOS's /ip/pool menu:

list()/find()/add()/update()/remove() only — no enable()/ disable(): confirmed directly against a real device that RouterOS's /ip/pool has no disabled property in its own model at all. This package does not force an operation onto a resource that doesn't support it.

7h. IP Route management (P20)

Default-route safeguard (P25): routes()->remove($id) and ->disable($id) first read the route and throw UnsafeOperationException if it is a default route (0.0.0.0/0). Pass allowDefaultRoute: true to proceed deliberately. This costs one extra read; the write itself is still sent once and never retried. update($id, ['disabled' => true]) and any update() that sets dst-address are guarded the same way (allowDefaultRoute: true to override); other updates, e.g. changing the gateway, are not.

$router->ip()->routes() maps to RouterOS's /ip/route menu — full list()/find()/add()/update()/remove()/enable()/disable():

This is this package's highest-risk write resource. An incorrect write against /ip/route can affect your router's default gateway or reachability. This package validates only what it can safely guarantee (a safe identifier, dst-address presence) before sending a request — it does not, and cannot, know which route on your router is "the important one." Never modify your default route, a WAN route, or any route you depend on. This package's own real-device testing used only a fully isolated route (a documentation-only dst-address, pointed at an idle, unassigned interface as the gateway) and independently re-verified the router's actual default route was untouched afterward.

7i. DNS + System identity (P21)

Two singleton settings resources — architecturally different from every module above: there is no .id, no list, no add()/remove(), just get()/update():

A real finding from this package's own real-device testing, worth knowing if you build anything similar yourself: the obvious guess for updating a singleton menu — PATCH to the menu's own path, with no identifier — is wrong. RouterOS rejects it with "missing or invalid resource identifier" (confirmed directly against a real device; no change was applied). The correct form is POST to the menu's /set path (RouterOS's own set console command, run through REST's documented "POST runs a console command" mechanism) — and that POST itself returns an empty body on success, not the updated record. Both update() methods here POST the write, then transparently re-get() and return the fresh state — you don't need to do this yourself.

Real-device verification differs between the two: systemIdentity() was fully verified (temporary rename → verified → restored to the original value → verified) since a router's identity/hostname is purely cosmetic and cannot affect connectivity. dns()->get() was verified; dns()->update() was not write-tested against a real device — changing DNS servers is a functionally significant change to a live router, not a harmless one, so this package's own testing deliberately stopped at read-only for this specific menu. If you use dns()->update(), treat the underlying POST .../set mechanism as confirmed (via systemIdentity()) but the specific /ip/dns behavior as your own responsibility to verify first, on a router you can afford to misconfigure.

7j. Users + Scheduler (P22)

Both offer list/find/add/update/remove/enable/disable. add() on users requires name and a non-empty password; on scheduler, name. Credentials are never returned (no password property, stripped from ->raw). Not device-tested — these resources have only run against HTTP fakes, because changing router accounts or schedules is not a harmless test. Cautions: remove(), disable() and any update() that disables or renames the account this connection itself logs in as throw UnsafeOperationException unless you pass allowActiveUser: true. Not guarded: removing the last full-access user, changing a user's group/address (either can still lock you out); a scheduler entry's on-event runs on the router with its owner's privileges (this package only stores that text and never runs an entry — create entries disabled first).

8. Monitoring

Everything in this section is opt-in — an application that never publishes/runs these migrations is completely unaffected by any of it.

Publish and run the monitoring migrations:

This creates four tables: mikrotik_snapshots, mikrotik_rules, mikrotik_alerts, mikrotik_incidents — all in your own application's database, using your normal Eloquent connection and access controls. None of them store router credentials.

Record a snapshot (a point-in-time capture of resource()/health()/ interfaces(), stored as JSON columns — RouterOS's already-normalized output is stored as-is, never re-interpreted):

Multiple routers (P24): SnapshotRecorder::recordMany(?array $names) (and ConnectionManager::pollMany()) poll the named connections — all configured ones if omitted — one router at a time (each router's own three reads are still concurrent). One router failing yields its exception in that router's slot and never stops the rest; results keep the order you passed. Cross-router parallelism and write batching are deferred (writes are never retried, so batching would need its own design). No benchmark for the multi-router path exists.

P24 performance note: record() fetches resource()/health()/ interfaces() concurrently (via RouterConnection::pollAll()), not sequentially — measured directly against a real device: ~440-565ms concurrent vs. ~1000-1250ms sequential for the same three reads (roughly half the latency, bounded by whichever of the three is slowest). record()'s own behavior/return value is unchanged by this — it is purely an internal performance improvement, and it fully respects your connection's own retry.times/retry.sleep configuration (see Basic Configuration) if you have one set.

Then, to tie snapshot-recording and rule-evaluation together on a schedule, run (or schedule) the artisan command:

mikrotik:monitor does, for each connection: record a snapshot → evaluate every enabled rule that applies to it → reconcile incidents → deliver any configured notifications for a newly triggered/resolved alert. A failure on one connection (unreachable router, rejected credentials, a RouterOS error, a database error) is reported via a console error line and does not stop the others from being processed — this is what makes running it repeatedly/on a schedule safe. This package does not register its own schedule entry — add it to Laravel's own scheduler yourself:

->withoutOverlapping() is Laravel's own cache-based lock; this package deliberately does not build a second one — see Concurrency below for what protects you if it still overlaps.

9. Rules

A rule is a plain Eloquent row you create yourself — there is no config-file or artisan-command way to define one:

evaluate() only returns newly-triggered alerts in its return value — a resolution or a deduplicated repeat still updates the database but produces no entry in the returned array. Query MikrotikAlert::query()->active() / ->resolved() for either state.

Concurrency

Two mikrotik:monitor runs evaluating the same rule+connection at nearly the same time cannot both create an active alert or an open incident for it — both mikrotik_alerts and mikrotik_incidents carry a real database unique index, not an application-level check with a race window. The losing insert fails with a genuine integrity-constraint error, which is caught and treated as "the other process already did this," never as an error and never as a duplicate row. This is not a claim of distributed locking — prefer ->withoutOverlapping() on the scheduler to avoid the overlap in the first place; this is the safety net for when it still happens.

Incidents

An alert (above) is one row per continuous triggered→resolved episode of one rule. An incident wraps that same episode in a longer-lived, stable record. In the current implementation, one incident maps one-to-one onto one alert episode (a rule's own deduplication already guarantees at most one active alert at a time, so there is nothing yet to group across multiple alert rows):

mikrotik:monitor already calls this for you every run. Cross-rule correlation (relating incidents from different rules that might share a root cause) is not implemented — see Feature matrix.

10. Notifications

Optional mail/webhook delivery when mikrotik:monitor observes an alert newly become 'triggered' or 'resolved'. Both channels are disabled by default:

With neither variable set, AlertNotifier::notify() is a silent no-op — Laravel's Notification facade is never touched. You can also call it directly for your own alerts:

Security notes: delivery uses Laravel's own on-demand/anonymous notifiable — this package has no "user" model to notify, and config('mikrotik.notifications') holds only a destination address/URL, never router credentials. The webhook payload carries only fields mikrotik_alerts already stores (id, status, connection, metric, operator, threshold, value, message, triggered_at, resolved_at) — never credentials. Delivery is synchronous (no queueing); queue it yourself if you need that.

11. Analytics

MonitoringAnalytics is entirely read-only history/trend queries over data P4/P5/P10 already store — it makes no RouterOS requests of its own and never writes to any table:

Every method accepts optional ?Carbon $since = null, ?Carbon $until = null to bound the window. Every query filters first on the already- indexed connection + captured_at/triggered_at/opened_at columns before touching a row's JSON columns.

12. Real MikroTik Testing Guide

Http::fake() tests (see section 13) prove this package sends the request RouterOS's own documentation says it should, and handles the response shape that documentation shows. They do not prove your specific router, RouterOS version, or user permissions actually behave that way. This section is how to verify that safely, without risking anything in your network.

Step 1 — Prepare the router

Step 2 — Configure Laravel

Use placeholders like these in any config you share — never a real value.

Step 3 — Verify read access

Before trying anything else, confirm the basics work:

If any of these throw, see Troubleshooting before going further — do not proceed to a write test until reads succeed.

Step 4 — Safe write test

Only attempt this against a resource you are certain is safe to change, and only if you actually need to verify write behavior for your use case — most applications only need the read capabilities above.

Pick a dedicated, clearly unused test address or a clearly idle interface (no active link, no production traffic, no IP already assigned) — never a production IP, route, or an interface actually carrying traffic. Use a documentation-only address for the value itself: 203.0.113.99/32 (RFC 5737) is reserved for exactly this purpose and is never a real, routable address.

Exact lifecycle, confirmed against a real device by this package's own test process (RouterOS 7.10.2, RB3011UiAS):

Stop immediately if any step behaves unexpectedly, or if you are not completely certain the resource you selected is safe — do not guess, and do not continue "to see what happens." A failed or interrupted test still needs step 11 (remove) attempted as cleanup — see Step 5.

Step 5 — Verify cleanup

After any write test (successful or not), always re-run list() (or find()) and confirm no temporary test data remains. If a cleanup step failed partway through, remove the leftover test entry manually before considering the test finished.

Step 6 — Never test by changing

Never use this package's write capabilities to change, on a router you cannot afford to misconfigure:

...unless you are working against a dedicated lab router with no production role at all.

13. Testing Without a Real Router

The test suite uses Illuminate\Support\Facades\Http::fake() throughout — no physical MikroTik router is required to run it. Http::fake() intercepts every outgoing HTTP request this package would make and returns a canned response you specify instead, letting tests assert exactly what request was sent (method, URL, body) without a network call ever happening. The base TestCase also calls Http::preventStrayRequests(), so any request that doesn't match a registered fake fails the test immediately instead of silently making a real network call.

CI (.github/workflows/tests.yml) runs this suite against every PHP/Laravel combination in Requirements on SQLite, plus one additional run against a real MySQL 8 service container — the monitoring migrations are written to be portable across both.

Http::fake() tests are not equivalent to real-device verification. They prove this package builds the request RouterOS's documentation says it should, and correctly parses the response shape that documentation shows — they cannot prove your specific router version or configuration actually behaves that way. See Real MikroTik Testing Guide above for how this package itself has been verified against a real device, and how you can verify your own.

14. Production Testing Checklist

Before relying on this package against a production router:

15. Troubleshooting

Exception Meaning Common cause
ConnectionException The router could not be reached at all. Wrong host/port, router offline, firewall blocking the connection, or the request timed out (->timedOut() — check MIKROTIK_TIMEOUT).
AuthenticationException The router was reached, but rejected the credentials (HTTP 401/403). Wrong MIKROTIK_USERNAME/MIKROTIK_PASSWORD, or the RouterOS user is disabled.
RouterOsException The router was reached, credentials were fine, but RouterOS itself returned an error for the request. An invalid value in a write request, a missing required field RouterOS itself requires, a "not found" .id, or — commonly for a write — insufficient RouterOS user permissions ("not enough permissions (9)" in $e->getRouterOsDetail() means the user needs the write policy). $e->getRouterOsErrorCode()/$e->getRouterOsDetail() give RouterOS's own error code/detail.
MalformedResponseException The router returned a 2xx response, but the body wasn't valid/expected JSON. Usually indicates a RouterOS version difference this package hasn't seen — please report it (without any credentials in the report).
InvalidConfigurationException A problem in this package's own configuration, not the router. An unknown connection name, a connection missing host/username/password, or an unsupported transport value (only 'rest' exists today).
InvalidRuleException A MikrotikRule you tried to save is malformed. An operator outside >, >=, <, <=, ==, !=, or a metric not starting with resource., health., or interfaces..
InvalidMenuPathException A menu() path or item identifier failed this package's own safety validation, before any request was sent. A path/identifier containing .., a full URL, or a character outside the safe allow-list.
InvalidQueryException A menu()->query() word or .proplist field was refused by this package (P23/P25), before any request was sent. An operator other than field=value, #|, #|!; a credential field name; a malformed field.
UnsafeOperationException A write was refused by a safeguard (P25) — currently deleting/disabling a default route. Pass allowDefaultRoute: true only if you really mean it.
InvalidResourceException A typed write call (ip()->addresses()->add()) is missing a field this package requires before it will even send a request. Calling add() without address.

A note on TLS errors specifically: they surface as ConnectionException (the router was not successfully reached over HTTPS) — check MIKROTIK_VERIFY_TLS and whether the router's certificate is trusted, or self-signed and not yet imported into your trust store.

No exception this package throws ever includes the configured username or password — see Security.

16. Security

P25 additions: every typed write validates attribute names (plain property names; no .id/.query/.proplist-style control keys) and requires scalar values before sending; menu() strips well-known credential fields from results (opt-out: withSecrets()); users() and ppp()->secrets() never return passwords; default-route removal/disable needs allowDefaultRoute: true (also for update() that disables it or changes its dst-address); users() refuses to remove/disable/rename the account the connection uses unless allowActiveUser: true. Credential redaction is recursive and case-insensitive, applies to every typed DTO's raw as well as menu(), and RouterOS error text has this connection's own password scrubbed. Writes are never retried. TLS verification stays on by default. Not guarded: RouterOS-specific property values, removing the last full-access user, and changing a user's group/address. Redaction is name-based, so a credential stored under an unlisted field name is not stripped.

17. Architecture Overview

The pieces you'll actually interact with:

18. Feature Matrix

Feature Status Read Write Notes
resource() — system resource Done Yes — /system/resource
health() — hardware sensors Done Yes — /system/health; sensor set varies per board
interfaces() — interfaces + counters Done Yes — /interface; cumulative counters, not live
interfaceRate() — one-shot live rate Done Yes — /interface/monitor-traffic ... once
logs() — router logs Done Yes — /log; simple equality filtering only
menu() — generic menu access Done (P9) Yes No (deliberate) Any other RouterOS menu, raw untyped rows, read-only forever
menu()->query() — advanced query/proplist Done (P23) Yes No .query/.proplist POST mechanism; validated words: equality, "#|" (device-verified), "#|!" (docs example); everything else rejected
ip()->addresses() — IP address mgmt Done (P13) Yes Yes list/find/add/update/remove/enable/disable; real-device verified
interface() — interface mgmt Done (P14) Yes Yes (no add/remove) list/find/update/enable/disable; real-device verified
firewall()->filter() — firewall filter mgmt Done (P15) Yes Yes Full CRUD + enable/disable; real-device verified
dhcp()->servers() / ->leases() — DHCP mgmt Done (P16) Yes Yes Full CRUD + enable/disable on both; real-device verified
ppp()->secrets() — PPP/PPPoE secret mgmt Done (P17) Yes Yes Full CRUD + enable/disable; passwords never exposed; real-device verified
queue()->simple() — simple queue mgmt Done (P18) Yes Yes Full CRUD + enable/disable; real-device verified
ip()->pools() — IP pool mgmt Done (P19) Yes Yes (no enable/disable) list/find/add/update/remove; real-device verified
ip()->routes() — IP route mgmt Done (P20) Yes Yes Full CRUD + enable/disable; highest-risk resource; real-device verified (isolated test route only)
dns() — DNS settings Done (P21) Yes Yes (unverified on real device) Singleton settings menu; get() real-device verified, update() not write-tested
systemIdentity() — system identity Done (P21) Yes Yes Singleton settings menu; get()/update() real-device verified
Write transport (put/patch/delete/postWrite) Done (P12/P21) — Internal only Not directly exposed; foundation for every typed write resource above
Opt-in retry (reads only) Done (P9) — N/A Never retries a write; never retries 401/403/4xx
Monitoring snapshots Done (P4) Local DB Local DB only Stores resource()/health()/interfaces() output; no RouterOS writes
Rules + alert lifecycle Done (P5) Local DB Local DB only Triggered/resolved lifecycle, deduplicated
Incidents Done (P10) Local DB Local DB only One incident per one alert episode (no cross-episode grouping yet)
mikrotik:monitor command Done (P6) Yes (via above) Local DB only Not self-scheduling — add to Laravel's scheduler
Notifications (mail/webhook) Done (P7) — External (opt-in) Disabled by default; synchronous
Analytics (MonitoringAnalytics) Done (P8/P10) Local DB only — No RouterOS requests of its own
Production hardening (CI, concurrency, security) Done (P11) — — See Concurrency
RouterConnection::pollAll() — concurrent reads Done (P24) Yes — resource()+health()+interfaces() via Http::pool(); ~2x faster, real-device measured
Final security/API/release audit Done (P25) — — Attribute validation on all writes, default-route guard, generic-menu credential redaction, LICENSE, Laravel 12/13 matrix
users() / scheduler() — user and scheduler mgmt Done (P22) Yes Yes Full CRUD + enable/disable; passwords never returned; not device-tested
SnapshotRecorder::recordMany() — multi-router polling Done (P24) Yes Local DB Sequential across routers, isolated failures; parallel/write batching deferred
Binary RouterOS API (port 8728/8729) Not planned No No REST only
Multi-tenant / SaaS features Not planned — — —

19. Roadmap

P1–P25 are implemented (see CHANGELOG.md). Deferred, not planned for a fixed date:

Any future addition is scoped against RouterOS's official REST documentation first, per this package's standing rule never to guess RouterOS behavior.

Known limitations

This package intentionally does not include:

RouterOS permissions

interfaces() and logs() are expected to work with the same read policy resource()/health() already require, but this was not independently re-confirmed for those two specifically against a live device — if your RouterOS user has a restricted policy set, verify read access to these menus yourself. menu() is a generic accessor: whatever read policy your user needs for a given menu is entirely between your RouterOS user configuration and that menu.

Every typed write resource (ip()->addresses(), interface(), firewall()->filter(), dhcp()->servers()/leases(), ppp()->secrets(), queue()->simple(), ip()->pools()/routes(), systemIdentity()) additionally requires the write policy — confirmed directly against a real device (see Requirements).

Production recommendations

A short checklist beyond the per-topic guidance already in this README:

License

MIT


All versions of laravel-mikrotik with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package easybdit/laravel-mikrotik contains the following files

Loading the files please wait ...