Download the PHP package imafaz/mikrolink without Composer

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

Lightweight PHP Library for MikroTik API Management

MikroLink is a lightweight PHP library designed for interacting with MikroTik routers using their API. This library simplifies the process of managing and automating tasks on MikroTik devices programmatically.



Requirements

To utilize this library effectively, ensure your environment meets the following requirements:

Installation

For seamless installation, use Composer:

Quick Start

Once the library is installed, include it in your PHP script:

Usage

Initialize the MikroLink object with debug mode, timeout, attempts, and delay settings:

Connect to a MikroTik router using its IP, username, password, port, and optional SSL mode:

Execute commands on the connected router:

disconnect router connection :

Available Methods

__construct

Description:

Initializes the MikroLink object with debugging and connection settings.

Signature:

Attributes:

Attribute Description Type Required Default
$timeout Connection timeout (seconds) int No 1
$attempts Connection attempts int No 3
$delay Delay between attempts (sec) int No 0
$logFile log file name string No mikrolink.log
$printLog print log bool No false

connect

Description:

Connects to a MikroTik router using the provided credentials and connection details.

Signature:

Attributes:

Attribute Description Type Required Default
$ip Router IP address string Yes N/A
$username Router login username string Yes N/A
$password Router login password string Yes N/A
$port Router API port int Yes N/A
$ssl SSL mode toggle bool No false

exec

Description:

Executes a MikroTik API command with optional parameters.

Signature:

Attributes:

Attribute Description Type Required Default
$command API command to execute string Yes N/A
$params Additional command parameters array No null

disconnect

Description:

Terminates the connection with the MikroTik router.

Signature:

License

This library is licensed under the MIT License


All versions of mikrolink with dependencies

PHP Build Version
Package Version
Requires php-64bit Version >=7.0
imafaz/easylog Version ^1
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 imafaz/mikrolink contains the following files

Loading the files please wait ....