Author Topic: Use of API  (Read 6730 times)

0 Members and 1 Guest are viewing this topic.

bobhorn42

  • Jr. Member
  • **
  • Posts: 2
Use of API
« on: June 11, 2015, 07:05:24 AM »
Hello,

  First I wish to congratulate the authors of mibew, this is a great app!
I have not found the answer to a very simple question in the Forum and documentation : I would like to include mibew in a custom application (running Symfony) and realised that the mibew package has not been uploaded to packagist.org (so composer does not find the "mibew/mibew" package if I include the line in the composer.json file of my application). Is there another way to include mibew ? Is there an example of the use of the API functions that can help me ?

Thank you.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Use of API
« Reply #1 on: June 11, 2015, 08:44:20 AM »
Hi,

There was a discussion on the issue at Github five months ago: https://github.com/Mibew/mibew/issues/85

As of API, it depends on your actual requirements. Some docs are available here: http://docs.mibew.org/

If you have any particular questions feel free to ask it.


bobhorn42

  • Jr. Member
  • **
  • Posts: 2
Re: Use of API
« Reply #2 on: June 11, 2015, 09:56:37 AM »
Thank you for your reply.

Initially, I wanted to do a separate application and add something like "use Mibew\RequestProcessor\Exception\UsersProcessor;" at the start of the controllers files and use "apiUpdateVisitors($args)" for example in the functions defined there.
Maybe I should better try to do a plugin to transfer information between applications, what would you recommend ?

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: Use of API
« Reply #3 on: June 16, 2015, 08:41:18 AM »
You should create a plugin =)

To start with plugins take a look at our boilerplate plugin: https://github.com/Mibew/boilerplate-plugin. Also you may be interested in server side events (http://docs.mibew.org/development/server-side-events.html). Actually I don't know what do you want to do, so that's all I can suggest.