# Single page application with vue

**URL:** <https://discourse.laminas.dev/t/single-page-application-with-vue/2704>\
**Category:** Components & MVC\
**Created:** [January 10, 2022, 10:33am UTC](https://discourse.laminas.dev/t/single-page-application-with-vue/2704 "2022-01-10T10:33:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Habeeb](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ahmed_habeeb/32/1233_2.png) [@Ahmed\_Habeeb](https://discourse.laminas.dev/u/Ahmed_Habeeb)\
**Post date:** [January 10, 2022, 10:33am UTC](https://discourse.laminas.dev/t/single-page-application-with-vue/2704/1 "2022-01-10T10:33:11Z")

</div>

Hi,  
I want to ask something ,I hope I get help.  
I want make single page application in front-end I use Vue js And in Backend I use zend or laminas.  
Is that possible !  
I searched for this topic I did’t found in any place !!!  
please if anyone have experiences with this subject need help ?

beste  
Ahmad

---

<div class="post-metadata">

**Author:** ![ezkimo](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ezkimo/32/781_2.png) [@ezkimo](https://discourse.laminas.dev/u/ezkimo)\
**Post date:** [January 10, 2022, 3:36pm UTC](https://discourse.laminas.dev/t/single-page-application-with-vue/2704/2 "2022-01-10T15:36:32Z")

</div>

Hey Ahmed,

welcome to the laminas forums. To answer your question: yes, it is possible.

Currently, I work with the same conditions. The frontend is based on a JavaScript framework and the backend uses the Laminas API tools. Beside the API tools you can use Laminas Mezzio. You should think about authentication and authorization. I guess you 're not using open APIs from where everyone can request data.

To keep it short: Yes, you can use Laminas (API Tools or Mezzio). You could even use Laminas components to access the request body and send a JSON response. But the API Tools or Mezzio can do this already for you.

---

<div class="post-metadata">

**Author:** ![Ahmed\_Habeeb](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ahmed_habeeb/32/1233_2.png) [@Ahmed\_Habeeb](https://discourse.laminas.dev/u/Ahmed_Habeeb)\
**Post date:** [January 11, 2022, 8:44am UTC](https://discourse.laminas.dev/t/single-page-application-with-vue/2704/3 "2022-01-11T08:44:40Z")

</div>

Hi ezkimo,  
Thank you very much for the help ,I really appreciate

beste  
Ahmad

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [January 13, 2022, 10:56am UTC](https://discourse.laminas.dev/t/single-page-application-with-vue/2704/4 "2022-01-13T10:56:15Z")

</div>

@ezkimo is right here, all is possible. You can use laminas-mvc, laminas-api-tools, Mezzio or only some components from Laminas to create an application as backend for JavaScript frontend with Vue or something else.

A typical REST application decouples the backend from the frontend and you will find many helpful libraries to create and test your application / API.
