diff --git a/www/get/PEAR2_Net_RouterOS-1.0.0b6.phar b/www/get/PEAR2_Net_RouterOS-1.0.0b6.phar new file mode 100644 index 0000000..b0a2c83 Binary files /dev/null and b/www/get/PEAR2_Net_RouterOS-1.0.0b6.phar differ diff --git a/www/get/PEAR2_Net_RouterOS-1.0.0b6.tar b/www/get/PEAR2_Net_RouterOS-1.0.0b6.tar new file mode 100644 index 0000000..e87a224 Binary files /dev/null and b/www/get/PEAR2_Net_RouterOS-1.0.0b6.tar differ diff --git a/www/get/PEAR2_Net_RouterOS-1.0.0b6.tgz b/www/get/PEAR2_Net_RouterOS-1.0.0b6.tgz new file mode 100644 index 0000000..be2c648 Binary files /dev/null and b/www/get/PEAR2_Net_RouterOS-1.0.0b6.tgz differ diff --git a/www/get/PEAR2_Net_RouterOS-1.0.0b6.zip b/www/get/PEAR2_Net_RouterOS-1.0.0b6.zip new file mode 100644 index 0000000..98a386f Binary files /dev/null and b/www/get/PEAR2_Net_RouterOS-1.0.0b6.zip differ diff --git a/www/rest/p/pear2_net_routeros/info.xml b/www/rest/p/pear2_net_routeros/info.xml index ef0c3f8..8d18fa7 100644 --- a/www/rest/p/pear2_net_routeros/info.xml +++ b/www/rest/p/pear2_net_routeros/info.xml @@ -4,7 +4,8 @@ pear2.php.net Default LGPL License 2.1 - RouterOS API client implementation. + RouterOS API client implementation. + 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.

diff --git a/www/rest/r/pear2_net_routeros/1.0.0b6.xml b/www/rest/r/pear2_net_routeros/1.0.0b6.xml new file mode 100644 index 0000000..f62d72f --- /dev/null +++ b/www/rest/r/pear2_net_routeros/1.0.0b6.xml @@ -0,0 +1,46 @@ + + +

PEAR2_Net_RouterOS

+ pear2.php.net + 1.0.0b6 + beta + LGPL License 2.1 + boen_robot + RouterOS API client implementation. + + 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. + 2017-05-22 15:41:15 + Util stuff, mostly. + +* __BREAKING CHANGES:__ + - Removed all $mode arguments from all Countable implementations (turns out no stable 5.6+ releases uses it...), and the COUNT_RECURSIVE implementations (which were mostly useless anyway). Util::count() has the $query argument as its first one, and a new $from argument as a second one. + - All Util CRUD methods throw RouterErrorException when the router returns an error. Previously, you'd need to inspect the returned value to check if there's an error. + - Util::edit() is no longer an alias of Util::set(). It's now its own method that can modify or unset a single specified property. + - Util::fileGetContents() now throws RouterErrorException if the file doesn't exist or if there are other problems with getting its contents. Previously, it returned FALSE for such cases. + - Util's escapeValue(), escapeString(), parseValue(), prepareScript() and appendScript() methods are now in their own new class called "Script", with the last two now being called just prepare() and append(). + - Script::escapeValue() now converts DateTime objects into a string having the "M/d/Y H:i:s" format (used across RouterOS), or just "M/d/Y" if the time is exactly midnight, and the timezone is UTC. The old behaviour can be achieved by "manually" adding the DateTime to "new DateTime('@0')". +* New Util methods: + - comment() + - getCurrentTime() + - newRequest() +* Script::escapeString() no longer escapes bytes above 0x7F. This means that parameter string values are now influenced by charset settings, and thus no additional conversion is necessary. A new second argument can be set to TRUE to escape all bytes, including the previously untouched ASCII alphanumeric characters and underscores. +* Stream parameters in Script::append() (and inherently, Script::prepare() and Util::exec()) now have ALL bytes escaped. +* Script::escapeValue() converts NULL to "nil" instead of "nothing". +* The $params array in Script::append() can declare variables with a value of type "nothing" by using numeric keys, and the variable names as values. +* Script::parseValue() now supports letter notation for time (1h2m3s), not just double colon notation (01:02:03), modeled after RouterOS. Related to that is also that leading zeroes, and zero minutes and seconds are now optional (e.g. "1:" is a valid way of saying 1 hour). Sub-second information is rounded up to the nearest second on current PHP versions (future versions are expected to support sub-second information in DateInterval by allowing seconds to be a double; The code currently attempts to give DateInterval a double, falling back to rounding to a second). +* Script::parseValue() now recognizes dates in the "M/d/Y H:i:s" format (used across RouterOS), and turns that into a DateTime object for that time (or midnight in UTC if the time part is omitted). +* Util::getAll() now throws a NotSupportedException if the arguments "follow", "follow-only" or "count-only" are used. The first two, because PHP would hang (since Client::sendSync() is used under the hood), and the last one because it's unredable in the returned output (use Util::count() instead). +* Util::setMenu() can now go back to the root menu. +* Util::exec() and stream valued arguments in both Util and Client no longer cause a hang when using charset conversion. +* Util::get() can now accept a query as an argument for $number +* Util::get() can have $valueName set to NULL (as is now by default), in which case all properties are retrieved in an array, parsed with Script::parseValueToArray(). +* Util::get() no longer fallbacks automatically with a "print" request for buggy versions. You may "manually" call Util::getAll() if you suspect that's an issue. +* Util::find() now works even when the underlying Client streams responses. +* Util::move()'s second argument $destination is now optional, and without it (or if set to NULL), the item is moved at the bottom of the menu. +* Client::login() consumes the !done or !fatal response even when called on an already logged in connection. +* Client::sendAsync() no longer throws an exception if a request is canceled multiple times by the returned value of a callback. +* The console now checks whether PEAR2_CommandLine is installed, ensuring better error messages when this package is installed without its optional dependencies. + 1052110 + http://pear2.php.net/get/PEAR2_Net_RouterOS-1.0.0b6 + +
diff --git a/www/rest/r/pear2_net_routeros/allreleases.xml b/www/rest/r/pear2_net_routeros/allreleases.xml index 844e87c..bd2197d 100644 --- a/www/rest/r/pear2_net_routeros/allreleases.xml +++ b/www/rest/r/pear2_net_routeros/allreleases.xml @@ -2,6 +2,10 @@

PEAR2_Net_RouterOS

pear2.php.net + + 1.0.0b6 + beta + 1.0.0b5 beta diff --git a/www/rest/r/pear2_net_routeros/allreleases2.xml b/www/rest/r/pear2_net_routeros/allreleases2.xml index 7f07029..0691816 100644 --- a/www/rest/r/pear2_net_routeros/allreleases2.xml +++ b/www/rest/r/pear2_net_routeros/allreleases2.xml @@ -2,6 +2,11 @@

PEAR2_Net_RouterOS

pear2.php.net + + 1.0.0b6 + beta + 5.3.0 + 1.0.0b5 beta diff --git a/www/rest/r/pear2_net_routeros/beta.txt b/www/rest/r/pear2_net_routeros/beta.txt index 69127db..7d70f13 100644 --- a/www/rest/r/pear2_net_routeros/beta.txt +++ b/www/rest/r/pear2_net_routeros/beta.txt @@ -1 +1 @@ -1.0.0b5 \ No newline at end of file +1.0.0b6 \ No newline at end of file diff --git a/www/rest/r/pear2_net_routeros/deps.1.0.0b6.txt b/www/rest/r/pear2_net_routeros/deps.1.0.0b6.txt new file mode 100644 index 0000000..94a2569 --- /dev/null +++ b/www/rest/r/pear2_net_routeros/deps.1.0.0b6.txt @@ -0,0 +1 @@ +a:2:{s:8:"required";a:4:{s:3:"php";a:1:{s:3:"min";s:5:"5.3.0";}s:13:"pearinstaller";a:1:{s:3:"min";s:5:"1.4.0";}s:7:"package";a:3:{s:4:"name";s:21:"PEAR2_Net_Transmitter";s:7:"channel";s:13:"pear2.php.net";s:3:"min";s:7:"1.0.0b1";}s:9:"extension";a:1:{s:4:"name";s:4:"pcre";}}s:8:"optional";a:2:{s:7:"package";a:4:{i:0;a:3:{s:4:"name";s:14:"PEAR2_Autoload";s:7:"channel";s:13:"pear2.php.net";s:3:"min";s:5:"0.2.4";}i:1;a:3:{s:4:"name";s:15:"PEAR2_Cache_SHM";s:7:"channel";s:13:"pear2.php.net";s:3:"min";s:5:"0.1.3";}i:2;a:3:{s:4:"name";s:25:"PEAR2_Console_CommandLine";s:7:"channel";s:13:"pear2.php.net";s:3:"min";s:5:"0.2.2";}i:3;a:3:{s:4:"name";s:19:"PEAR2_Console_Color";s:7:"channel";s:13:"pear2.php.net";s:3:"min";s:5:"1.0.0";}}s:9:"extension";a:1:{s:4:"name";s:5:"iconv";}}} \ No newline at end of file diff --git a/www/rest/r/pear2_net_routeros/latest.txt b/www/rest/r/pear2_net_routeros/latest.txt index 69127db..7d70f13 100644 --- a/www/rest/r/pear2_net_routeros/latest.txt +++ b/www/rest/r/pear2_net_routeros/latest.txt @@ -1 +1 @@ -1.0.0b5 \ No newline at end of file +1.0.0b6 \ No newline at end of file diff --git a/www/rest/r/pear2_net_routeros/package.1.0.0b6.xml b/www/rest/r/pear2_net_routeros/package.1.0.0b6.xml new file mode 100644 index 0000000..b320bbc --- /dev/null +++ b/www/rest/r/pear2_net_routeros/package.1.0.0b6.xml @@ -0,0 +1,463 @@ + + + PEAR2_Net_RouterOS + pear2.php.net + RouterOS API client implementation. + + 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. + + Vasil Rangelov + boen_robot + boen.robot@gmail.com + yes + + 2017-05-22 + + + 1.0.0b6 + 1.0.0 + + + beta + stable + + LGPL License 2.1 + Util stuff, mostly. + +* __BREAKING CHANGES:__ + - Removed all $mode arguments from all Countable implementations (turns out no stable 5.6+ releases uses it...), and the COUNT_RECURSIVE implementations (which were mostly useless anyway). Util::count() has the $query argument as its first one, and a new $from argument as a second one. + - All Util CRUD methods throw RouterErrorException when the router returns an error. Previously, you'd need to inspect the returned value to check if there's an error. + - Util::edit() is no longer an alias of Util::set(). It's now its own method that can modify or unset a single specified property. + - Util::fileGetContents() now throws RouterErrorException if the file doesn't exist or if there are other problems with getting its contents. Previously, it returned FALSE for such cases. + - Util's escapeValue(), escapeString(), parseValue(), prepareScript() and appendScript() methods are now in their own new class called "Script", with the last two now being called just prepare() and append(). + - Script::escapeValue() now converts DateTime objects into a string having the "M/d/Y H:i:s" format (used across RouterOS), or just "M/d/Y" if the time is exactly midnight, and the timezone is UTC. The old behaviour can be achieved by "manually" adding the DateTime to "new DateTime('@0')". +* New Util methods: + - comment() + - getCurrentTime() + - newRequest() +* Script::escapeString() no longer escapes bytes above 0x7F. This means that parameter string values are now influenced by charset settings, and thus no additional conversion is necessary. A new second argument can be set to TRUE to escape all bytes, including the previously untouched ASCII alphanumeric characters and underscores. +* Stream parameters in Script::append() (and inherently, Script::prepare() and Util::exec()) now have ALL bytes escaped. +* Script::escapeValue() converts NULL to "nil" instead of "nothing". +* The $params array in Script::append() can declare variables with a value of type "nothing" by using numeric keys, and the variable names as values. +* Script::parseValue() now supports letter notation for time (1h2m3s), not just double colon notation (01:02:03), modeled after RouterOS. Related to that is also that leading zeroes, and zero minutes and seconds are now optional (e.g. "1:" is a valid way of saying 1 hour). Sub-second information is rounded up to the nearest second on current PHP versions (future versions are expected to support sub-second information in DateInterval by allowing seconds to be a double; The code currently attempts to give DateInterval a double, falling back to rounding to a second). +* Script::parseValue() now recognizes dates in the "M/d/Y H:i:s" format (used across RouterOS), and turns that into a DateTime object for that time (or midnight in UTC if the time part is omitted). +* Util::getAll() now throws a NotSupportedException if the arguments "follow", "follow-only" or "count-only" are used. The first two, because PHP would hang (since Client::sendSync() is used under the hood), and the last one because it's unredable in the returned output (use Util::count() instead). +* Util::setMenu() can now go back to the root menu. +* Util::exec() and stream valued arguments in both Util and Client no longer cause a hang when using charset conversion. +* Util::get() can now accept a query as an argument for $number +* Util::get() can have $valueName set to NULL (as is now by default), in which case all properties are retrieved in an array, parsed with Script::parseValueToArray(). +* Util::get() no longer fallbacks automatically with a "print" request for buggy versions. You may "manually" call Util::getAll() if you suspect that's an issue. +* Util::find() now works even when the underlying Client streams responses. +* Util::move()'s second argument $destination is now optional, and without it (or if set to NULL), the item is moved at the bottom of the menu. +* Client::login() consumes the !done or !fatal response even when called on an already logged in connection. +* Client::sendAsync() no longer throws an exception if a request is canceled multiple times by the returned value of a callback. +* The console now checks whether PEAR2_CommandLine is installed, ensuring better error messages when this package is installed without its optional dependencies. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.3.0 + + + 1.4.0 + + + PEAR2_Net_Transmitter + pear2.php.net + 1.0.0b1 + + + pcre + + + + + PEAR2_Autoload + pear2.php.net + 0.2.4 + + + PEAR2_Cache_SHM + pear2.php.net + 0.1.3 + + + PEAR2_Console_CommandLine + pear2.php.net + 0.2.2 + + + PEAR2_Console_Color + pear2.php.net + 1.0.0 + + + iconv + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/rest/r/pear2_net_routeros/v2.1.0.0b6.xml b/www/rest/r/pear2_net_routeros/v2.1.0.0b6.xml new file mode 100644 index 0000000..a23ead5 --- /dev/null +++ b/www/rest/r/pear2_net_routeros/v2.1.0.0b6.xml @@ -0,0 +1,48 @@ + + +

PEAR2_Net_RouterOS

+ pear2.php.net + 1.0.0b6 +
1.0.0 + 5.3.0 + beta + LGPL License 2.1 + boen_robot + RouterOS API client implementation. + + 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. + 2017-05-22 15:41:15 + Util stuff, mostly. + +* __BREAKING CHANGES:__ + - Removed all $mode arguments from all Countable implementations (turns out no stable 5.6+ releases uses it...), and the COUNT_RECURSIVE implementations (which were mostly useless anyway). Util::count() has the $query argument as its first one, and a new $from argument as a second one. + - All Util CRUD methods throw RouterErrorException when the router returns an error. Previously, you'd need to inspect the returned value to check if there's an error. + - Util::edit() is no longer an alias of Util::set(). It's now its own method that can modify or unset a single specified property. + - Util::fileGetContents() now throws RouterErrorException if the file doesn't exist or if there are other problems with getting its contents. Previously, it returned FALSE for such cases. + - Util's escapeValue(), escapeString(), parseValue(), prepareScript() and appendScript() methods are now in their own new class called "Script", with the last two now being called just prepare() and append(). + - Script::escapeValue() now converts DateTime objects into a string having the "M/d/Y H:i:s" format (used across RouterOS), or just "M/d/Y" if the time is exactly midnight, and the timezone is UTC. The old behaviour can be achieved by "manually" adding the DateTime to "new DateTime('@0')". +* New Util methods: + - comment() + - getCurrentTime() + - newRequest() +* Script::escapeString() no longer escapes bytes above 0x7F. This means that parameter string values are now influenced by charset settings, and thus no additional conversion is necessary. A new second argument can be set to TRUE to escape all bytes, including the previously untouched ASCII alphanumeric characters and underscores. +* Stream parameters in Script::append() (and inherently, Script::prepare() and Util::exec()) now have ALL bytes escaped. +* Script::escapeValue() converts NULL to "nil" instead of "nothing". +* The $params array in Script::append() can declare variables with a value of type "nothing" by using numeric keys, and the variable names as values. +* Script::parseValue() now supports letter notation for time (1h2m3s), not just double colon notation (01:02:03), modeled after RouterOS. Related to that is also that leading zeroes, and zero minutes and seconds are now optional (e.g. "1:" is a valid way of saying 1 hour). Sub-second information is rounded up to the nearest second on current PHP versions (future versions are expected to support sub-second information in DateInterval by allowing seconds to be a double; The code currently attempts to give DateInterval a double, falling back to rounding to a second). +* Script::parseValue() now recognizes dates in the "M/d/Y H:i:s" format (used across RouterOS), and turns that into a DateTime object for that time (or midnight in UTC if the time part is omitted). +* Util::getAll() now throws a NotSupportedException if the arguments "follow", "follow-only" or "count-only" are used. The first two, because PHP would hang (since Client::sendSync() is used under the hood), and the last one because it's unredable in the returned output (use Util::count() instead). +* Util::setMenu() can now go back to the root menu. +* Util::exec() and stream valued arguments in both Util and Client no longer cause a hang when using charset conversion. +* Util::get() can now accept a query as an argument for $number +* Util::get() can have $valueName set to NULL (as is now by default), in which case all properties are retrieved in an array, parsed with Script::parseValueToArray(). +* Util::get() no longer fallbacks automatically with a "print" request for buggy versions. You may "manually" call Util::getAll() if you suspect that's an issue. +* Util::find() now works even when the underlying Client streams responses. +* Util::move()'s second argument $destination is now optional, and without it (or if set to NULL), the item is moved at the bottom of the menu. +* Client::login() consumes the !done or !fatal response even when called on an already logged in connection. +* Client::sendAsync() no longer throws an exception if a request is canceled multiple times by the returned value of a callback. +* The console now checks whether PEAR2_CommandLine is installed, ensuring better error messages when this package is installed without its optional dependencies. + 1052110 + http://pear2.php.net/get/PEAR2_Net_RouterOS-1.0.0b6 + +