samedi 5 mars 2016

Integrating magento mage with laravel 5

My task is to integrate Magento 1.9 store and Laravel 5.1.* such that all data/collection/model can be called inside Laravel controller.

Now my project folders are on seperate server. I need to create a connection between these two projects for indexing the data inside ElasticSearch which is already integrated in my laravel project.

Solution i have thought of->

  1. Firing raw query- From magento i get the raw query fired by magento with the help of getSelect(). Then i create a database connection from laravel 5 and shoot the raw query on DB. The issue is that magento does not returns only the object collection as it has the EAV DB architecture. To get the whole data i need to make a lot of joins which does not seem to be a good way.

  2. Including Mage(the app initializer in magento) inside laravel- With this when I initialize the connection [Mage::app()] the autoloader inside my magento folder take all the directory part according to the laravel project folder because of which the magento app dosent initialize.

  3. Saw Mangento_on_angular on github by wildhoney- but this does not really give me the freedom to achieve the requirement i have accept that if i can implement the connection it has used. (i.e thru api)

So the conclusion here is that if i could find a way to use magento models inside my laravel project.

Any help is appreciated. thanku



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1L7XfYl
via IFTTT

Aucun commentaire:

Enregistrer un commentaire