Download the PHP package srikanta159/net_routeros_php without Composer

On this page you can find all versions of the php package srikanta159/net_routeros_php. 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 net_routeros_php

Net_RouterOS_PHP

CI Status Latest Stable Version PHP Version License: LGPL-2.1

A modernized PHP API client for MikroTik RouterOS, supporting both RouterOS v7 (including v7.19.4+) and RouterOS v6. Fully compatible with modern PHP (PHP 7.4 through PHP 8.4+).


Why This Package Exists

The original pear2/net_routeros library was abandoned and broke when MikroTik introduced RouterOS v7:

  1. Authentication Overhaul: RouterOS v6.43+ and v7 introduced direct credential authentication, deprecating the legacy MD5 CHAP challenge-response handshake (=ret=). Legacy clients fail with Invalid username or password.
  2. New Response Type (!empty): RouterOS v7 returns !empty instead of empty !re or !done in many queries. Legacy clients crash with:

  3. Modern PHP Deprecations: PHP 8.1, 8.2, 8.3, and 8.4 introduced deprecations for SPL interfaces without return types (#[\ReturnTypeWillChange]) and dynamic property access.

Net_RouterOS_PHP solves all of these problems while maintaining full backward compatibility with legacy RouterOS v6 devices and existing codebases.


Features


Requirements


Installation

Option 1: Composer (Recommended)

Add the package to your project:

Note: If your root composer.json has minimum-stability: stable, ensure you add "minimum-stability": "alpha" and "prefer-stable": true to allow pear2/net_transmitter.

Option 2: Git Clone / Manual Download

Clone the repository into your project:

Include the standalone autoloader:


Quick Start

1. Basic Synchronous Request


2. Encrypted Connection (API-SSL on Port 8729)


3. Filtering with Query Builder


4. Handling RouterOS v7 !empty Responses


Running Tests

Run the built-in test runner without any external test framework:

Or using Composer:

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details on our code of conduct and development workflow.


License

This package is free and open-source software licensed under the GNU Lesser General Public License v2.1 or later (LGPL-2.1-or-later), with permission granted under LGPL Section 3 to apply the terms of the GNU General Public License.


All versions of net_routeros_php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
pear2/net_transmitter Version ^1.0@alpha
ext-iconv Version *
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 srikanta159/net_routeros_php contains the following files

Loading the files please wait ...