Search by

mitinsany / routeros-client

MitinSany

MikroTik RouterOS API client

Package info

github.com/mitinsany/routeros-client

pkg:composer/mitinsany/routeros-client

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v14.0.0 2026-12-05 17:42 UTC

README

An independently authored PHP client for the MikroTik RouterOS API protocol.

Installation

composer require mitinsany/routeros-client

This release is 2.0.0, API series 2.x, for PHP >=5.4 <7.0. To stay in this compatibility series:

composer require "mitinsany/routeros-client:^2.0"

Composer selects a suitable stable release for new projects using PHP and project requirements. See the release series table for all supported PHP lines and upgrade rules.

Library

The php5 maintenance branch supports PHP >=5.4 <7.0. The library exposes the MitinSany\RouterOS namespace.

Api::connect() supports LoginMode::AUTO by default, plus explicit LoginMode::PLAIN for RouterOS 6.43+ and LoginMode::LEGACY for challenge- response authentication on older RouterOS releases.

The supported public surface is recorded in docs/public-contract.md. Protocol behavior and command helpers are covered by isolated tests.

See docs/branching.md for Docker verification commands and the PHP branch policy.

The clean-room technical provenance is described in docs/provenance.md.

See CHANGELOG.md for changes and migration notes, and docs/php-evolution.md for the language evolution policy.

Synchronization reports events through an optional callback; callers control formatting and storage. See synchronization events for the DTO contract and migration from getLogs()/getErrors().

Run php tools/check-phpdoc.php to check source PHPDoc completeness and parameter names against the loaded branch's declarations. Review types and exceptions alongside the implementation; this check does not prove their semantics.