TuffRivers's avatar

Laravel for 3rd part shipping integration

Hi All,

I have been learning the laravel framework recently and find it very useful for a novice coder. I have an upcoming project and was wondering if laravel would be a good use for it. Please let me know your recommendations. I have experience with core php, js, html, css, i am by no means an expert but a intermediate tinkierer.

I have a hosted ecommerce site that needs to connect to a 3rd party shipping fullfilment center (send order data in XML format to warehouse).

My hosted ecomm host has a rest API so i can access all order data programatically (i cant access server side code). My Warehouse is SOAP API.

I was thinking using laravel and my external webserver to middle man between these two platforms. Laravel would query my ecomm API and get new order data, then format orders into XML and use soap protocols to send information to our warehouse and handle responses (errors if any).

I appreciate any input/views, please let me know if there is a much better solution than what i am thinking.

Tuff

0 likes
4 replies
martinbean's avatar
Level 80

@TuffRivers Laravel is a general-purpose framework, so can be used for most web-based projects and applications.

Rather than constantly querying your hosting e-commerce application’s API, does it not instead have webhooks or a notification system that could POST to an arbitrary URL? You could then instead listen for these webhooks and update your fulfilment centre then.

1 like
bobbybouwmann's avatar

Well that would a perfect solution for you ;) There are a lot of php and laravel packages that can help you do the soap calls and convert everything to xml.

TuffRivers's avatar

@martinbean you are very correct, my store does have a webhook capability.

So i can have the webhook POST to a url on my webapp and then route it to do what it needs ot do (convert json to xml, post to fullfillment api, handle responses etc).

I did not even think of that !

Please or to participate in this conversation.