Download the PHP package ocolin/easymt without Composer

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

About

This library provides a simple and basic interface to useing evilfreelancer's RouterOS API as well as SNMP calls for Mikrotik devices.

This library is going away and being replaced by ocolin/routeros

Requirements

PHP 8.3+

Adding a composer module:

In your composer.json

Then run

API

Most of the funcionality comes from:

https://github.com/EvilFreelancer/routeros-api-php

This wrapper simply allows you to use environment variables in advance.

Settings

Arguments

Any host related arguments such as IP will take precedent the config file or environment variables

Environment Variables

Environment variables will override any settings from the default config file. A prefix is required so that multiple entries can be stored. The prefix will be appended to the beginning of the environment variable used. Here are the defaults:

With prefix 'EXAMPLE1':

Default config file

You can also edit src/config.json if you don't want to use arguments or environment variables. This will however only allow for a single device to be used.

Examples

Example 1: Using settings in config.json

Example 2: Using parameters:

Example 3: Using environment variables

Example 4: Using argument ip and local environment variables

SNMP

Calls

Function Description
port_Alias( int ) Get name of alias for a port
ports() Get list of port information
ethernet() Get list of ethernet interface data
port_Name( int ) Get name of a port
system() Get system information
iPs() List of IP address information
routes() List of IP routes
media() List of Media information
forward() List of forwarding entries
ARP() List ARP table
uptime() Uptime infromation
storage() List of storage information
processor() Processor information
organization() List of orgnaization information
dot1dTpFdbEntry() List of bridge forwarding information
power() List of power related information
health() Device health information
license() License information
os() Information about OS
neighbors() List of neighbor information
ifStats() List of interface statistic information
partitions() List of partition information
optical() List of optical interface information
leaseCount() Get number of DHCP leases

Example

Example 1: Using environment variable

Example 2: Using argument variables

Example 3: Using default SNMP settings

Example Output:


All versions of easymt with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
evilfreelancer/routeros-api-php Version ^1.5
ocolin/easyenv Version ^3.0
ocolin/easysnmp Version ^2.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 ocolin/easymt contains the following files

Loading the files please wait ...