RouterOS is the flag product of the company MikroTik and is a powerful router software. One of its many abilities is to allow control over it via an API. This package provides a client for that API, in turn allowing you to use PHP to control RouterOS hosts.

Release Notes - 1.0.0b4

Brand new way of manipulating data, encryption, and listen...

  • A new Util class that abstracts away tons of fancy features, including:
    • CRUD operations
    • Support of targeting and finding entries by numbers, just like from terminal
    • Executing scripts (with the ability to pass typed parameters ala SQL prepared statements)
    • Putting and getting files out of RouterOS
    • Helper methods for converting back and forth between PHP and RouterOS values.
  • Support for encrypted connections, both with and without a certificate. Note that due to known issues with PHP itself, encrypted connections may be unstable (as in "sometimes disconnect suddenly" or "sometimes hang when you use Client::sendSync() and/or Client::completeRequest() and/or Client::loop() without a timeout").
  • Client::loop() and Client::completeRequest() no longer fail if there's no reply within "default_socket_timeout" seconds. This means you can now use the "listen" command without also setting up something else to keep the connection busy.
  • Client::loop() now accepts timeouts modeled after stream_select()'s, as opposed to a single float value. As before, the default is "no time limit", but is now specified with NULL instead of 0. Analogous arguments have been added to Response's constructor.
  • When receiving, the release lock is released when ANY exception is thrown. Previously, this would be so only in case of SocketException.
  • Chnaged the PHAR stub to not fail when reading the hash fails.
  • Exceptions now use constants to hold each code.
  • Doc and CS fixes, and unit test reorganization.

Categories

Installation

$ php pyrus.phar install PEAR2_Net_RouterOS
Status: 1.0.0b4 beta, released on August 15, 2013
License: LGPL License 2.1
Documentation: GitHub Wiki
Issues: 2 open, 8 closed
Maintainers:

Release History

1.0.0b4 beta August 15, 2013
1.0.0b3 beta August 3, 2012
1.0.0b2 beta October 16, 2011
1.0.0b1 beta September 27, 2011

Browse Files

74 files in 26 directories.

Dependencies for PEAR2_Net_RouterOS