Download the PHP package mivodev/mikrotik-api-ros6 without Composer
On this page you can find all versions of the php package mivodev/mikrotik-api-ros6. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mivodev/mikrotik-api-ros6
More information about mivodev/mikrotik-api-ros6
Files in mivodev/mikrotik-api-ros6
Package mikrotik-api-ros6
Short Description Complete, universal PHP client for Mikrotik RouterOS v6 API (Socket Protocol Port 8728). Framework-agnostic, zero-dependency.
License MIT
Homepage https://github.com/mivodev/mikrotik-api-ros6
Informations about the package mikrotik-api-ros6

Mikrotik API ROS6
Complete, universal PHP client for Mikrotik RouterOS v6 API via Socket Protocol (Port 8728). Framework-agnostic with zero external dependencies.
Features
- Universal API Client — Execute ANY RouterOS command, not just a pre-defined subset
- Dual-Mode Login — Auto-detects MD5 Challenge (pre-v6.43) and Plaintext (post-v6.43)
- Zero Dependencies — Only built-in PHP functions (
stream_socket_client,md5,chr,ord) - Framework-Agnostic — Works with PHP Native, Laravel, CodeIgniter, Symfony, or any PHP framework
- SSL Support — Connect via port 8729 with SSL encryption
- Auto-Retry — Configurable connection retry attempts with delay
- Auto-Parsing — Raw Mikrotik responses converted to structured PHP arrays
Requirements
- PHP >= 8.2
- Network access to Mikrotik router on port 8728 (or 8729 for SSL)
Installation
Via Composer (Recommended)
For Laravel Projects
Use the Laravel wrapper instead, which provides ServiceProvider, Facade, and .env configuration:
Quick Start
Usage
Connecting to a Router
Configuration Options
Executing Commands
The comm() method is the universal entry-point. It can execute any RouterOS command:
Filtering & Queries
Use the ? prefix on keys to filter results:
Regex Filtering
Use the ~ prefix for regex-based filtering:
Response Format
All responses are returned as structured PHP arrays:
Error Handling
Debug Mode
Enable debug mode to see all sent and received words:
Architecture
References
This package was built using the following references:
- Mikrotik API Documentation (ROS7)
- Mikrotik API Documentation (ROS6 Legacy)
- Mikhmon v3 — routeros_api.class.php by Denis Basta & Laksamadi Guko
- EvilFreelancer/routeros-api-php
License
MIT License. See LICENSE for details.