Community discussions

MikroTik App
 
User avatar
vthinkteam
just joined
Topic Author
Posts: 7
Joined: Sun Nov 20, 2011 7:23 am
Location: Mataram, Indonesia
Contact:

CodeIgniter Spark Mikrotik RouterOS API

Sun Nov 20, 2011 7:51 am

We have developing Mikrotik RouterOS API Library from Denis Basta (denis.basta@gmail.com) routeros_api class and we change it to our core class with name Mapi_Core. We have been tested with RouterOS version 3 and above. This spark library allow your Mikrotik RouterOS via CodeIgniter Framework for PHP, and we have make it easier than before for access and manipulating Mikrotik RouterOS API with specific method.

If you are CodeIgniter Framework Programmer, you can get Library for CodeIgniter Spark in this link :

Spark Library : http://getsparks.org/packages/mikrotik_api/show
Spark Repository : https://github.com/vthink/mikrotik_api
Documentation : http://doc.vthink.web.id
Updates Info : http://vthink.web.id/index.php/content/categories/21

if you have codeigniter but doesn't have a spark management package you can install it via terminal with this command :
php -r "$(curl -fsSL http://getsparks.org/go-sparks)"
more information about what is CodeIgniter Spark PHP Framework, please open this link:
http://getsparks.org/install
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: CodeIgniter Spark Mikrotik RouterOS API

Sun Nov 20, 2011 3:59 pm

You do realize that by adding context-specific methods, you're limiting the library's usefullness to the methods implemented, right?

It is for that reason that in my library, I decided to simplify the request and response creation and management instead - you're still allowing the end user to do anything, but you let them do it in a more intuitive fashion that doesn't require them to read the whole API specification, but rely on their terminal skills instead.
 
User avatar
vthinkteam
just joined
Topic Author
Posts: 7
Joined: Sun Nov 20, 2011 7:23 am
Location: Mataram, Indonesia
Contact:

Re: CodeIgniter Spark Mikrotik RouterOS API

Tue Nov 22, 2011 1:55 pm

Yups, I realize that and this library is designed for doing that... Maybe this library will useful when we have a limit time to understanding API mechanism, soo people that use this library is like doing porting MikroTik command to array format in PHP. But anyway, I'm just a newbie :D .

Who is online

Users browsing this forum: JDF, UkRainUa and 27 guests