mitinsany / routeros-client
MikroTik RouterOS API client
Requires
- php: >=8.6 <9.0
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpunit/phpunit: ^4.8.36 || ^9.6
- squizlabs/php_codesniffer: ^3.5
- yoast/phpunit-polyfills: ^1.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-05 17:49:11 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.