question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create PHP based version of vue-storefront-api

See original GitHub issue

What is the motivation for adding / enhancing this feature?

From the feedback we got it seems that the Node.js backend API layer could be a barrier, especially for experienced M2 PHP developers who would like to keep all the API methods closely to Magento and with single technology.

The idea is to create a native Magento2 module like https://github.com/DivanteLtd/magento1-vsbridge which will be 100% compliant with vue-storefront-api

By doing so Magento2 developers might have easily extend the API.

What are the acceptance criteria

  • ElasticSearch should be possible to query thru this API
  • all the other endpoints (including /img) should work just fine
  • there should be native Magento2->Elastic indexer included within this module
  • we don’t have to support graphQL endpoints from the day zero - the rest API is just fine

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
janmyszkiercommented, Nov 7, 2018

IMO this is not necessary and not needed.

If you decide to develop vueSF (as in vueJS), you probably know node already (you should). If you know only PHP, you won’t be able to develop vueSF store easily anyway.

API app/module is not needed for anything but VueSF. If someone doesn’t need vueSF then why would PHP-based API help him at all? to install API backend module (instead of api backend app) and then forward work to some node-knowing frontend anyway? This doesn’t make sense.

It would also make it harder to separate vue parts from magento and put them on separate host, which was the core idea behind it - decoupling. It’s easier to cleanup node API backend right now when vueSF is not needed too, which won’t be so easy if you decide to put it up as a magento module along with additional elasticsearch requirement.

Maintenance and docs is already a problem, see how integration boilerplate docs is not even up to date right now, this additional thing to maintain will just make it worse. Unless DivanteLtd is ready to put some serious resources into writing tests and update docs, this will make potential devs more frustrated with the product (because docs won’t tell the truth) so not a good idea in the long term.

I’m posting a big NO here, contrary to the opinion above. The vueSF is a growing product and is prone to change. Creating this may slow down the development OR make one solution or the other fall behind because if you know only one language (i.e PHP because you’re experienced Magento dev) you won’t be able to contribute to both. PRs won’t be accepted for the sake of compatibility, and this will slow things down even more.

3reactions
CodeSkillscommented, Jan 18, 2019

When this gets done, I’m able to make Laravel package so anyone can easily setup a Laravel Bridge -> VSF.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create PHP based version of vue-storefront-api #1965 - GitHub
If you decide to develop vueSF (as in vueJS), you probably know node already (you should). If you know only PHP, you won't...
Read more >
Integration Tutorial - Storefront API
Integration Tutorial. Note: This integration tutorial will guide you through the custom backend integration with Storefront API. We're using the default ...
Read more >
Vue Storefront: Frontend as a Service for Headless Commerce
Create and control the Customer Experience with Vue Storefront. From UI to API Orchestration and Hosting. At Vue Storefront it's all included.
Read more >
API Client | Vue Storefront Next - YouTube
API Client is a tiny abstraction layer over your network calls that gives you full control and flexibility over how and from where...
Read more >
Setup and Install Vue Storefront with Magento 2 - YouTube
How can you build the best headless stack for your Magento 2? Check out this video for the ultimate setup and install guide...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found