Download the PHP package a909m/routeros-php-sdk without Composer

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

RouterOS PHP SDK

Tests Latest Version on Packagist Total Downloads [Status]()

Note: This package is under active development. The API may change between minor versions until a stable release.

A PHP SDK for the MikroTik RouterOS REST API, built with Saloon.

This SDK was auto-generated from the RouterOS v7.23.1 OpenAPI specification and covers all available REST API endpoints.

Requirements

Installation

Install the package via Composer:

Usage

Basic Usage

Initialize the SDK with your RouterOS credentials:

Authentication

The SDK uses HTTP Basic Authentication by default. For HTTPS connections, pass useHttps: true (the REST API typically runs on port 443):

Timeouts

Default timeouts: 60s connection, 120s request. To customize, extend the RouterOS class:

Error Handling

The SDK throws Saloon exceptions when requests fail. Wrap calls in try/catch to handle errors gracefully:

Available Resources

The SDK provides access to all RouterOS REST API resources:

Resource Method Description
app() App management Manage RouterOS apps
capsMan() CapsMan Wireless CAPsMAN management
certificate() Certificates Certificate management
console() Console Console settings
container() Containers Container management
disk() Disk Disk management
dude() Dude The Dude network monitoring
environment() Environment Environment variables
file() Files File management
interfaceResource() Interfaces Network interfaces
iot() IoT IoT configurations
ip() IP IP address, routes, firewall
ipv6() IPv6 IPv6 configurations
log() Logs System logs
mpls() MPLS MPLS configurations
openflow() OpenFlow OpenFlow settings
port() Ports Port management
ppp() PPP PPP configurations
queue() Queues Queue management
radius() RADIUS RADIUS settings
root() Root Root-level operations
routing() Routing Routing protocols
safeMode() Safe Mode Safe mode operations
snmp() SNMP SNMP settings
specialLogin() Special Login Special login methods
system() System System settings
task() Tasks Task management
terminal() Terminal Terminal access
tool() Tools Various tools
tr069client() TR-069 TR-069 client settings
user() Users User management
userManager() User Manager User manager settings

Examples

Get System Information

Manage IP Addresses

Firewall Rules

Wireless Configuration

Working with Proplists

You can specify which properties to return using the proplist parameter:

Testing

Run the test suite:

Run static analysis:

Format code:

API Documentation

This SDK was generated from the RouterOS OpenAPI specification. For detailed API documentation, refer to the MikroTik Wiki.

Credits

Changelog

See CHANGELOG.md for a list of changes and release notes.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.


All versions of routeros-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
saloonphp/saloon Version ^3.0|^4.0
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 a909m/routeros-php-sdk contains the following files

Loading the files please wait ...