We can send messages to all connected clients using socket.io. To do this we broadcast a message. This tutorial shows how we go about doing this. It is a continuation from the first socket.io tutorial.
In this tutorial we create a single page app that fetches data from an api. To do this we used axios api. We work with child components and use a router. We also added some pagination.
So for this tutorial I created a simple API using code igniter. CodeIgniter is a PHP MVC framework. Its extremely simple and straight forward to setup. It comes with a lot of features which I didn't go into but I will eventually. To create the API we learn about using CodeIgniter's base classes for Controllers … Continue reading Creating a simple API using CodeIgniter MVC PHP framework
To get the code click this button. So for this mini application I created a quantity table. This is great for if you have some kind product order form. The user can select different quantities to purchase from a list of items in the table. They will immediately get to see how the changes in … Continue reading Create a quantity table with Vue.js and PHP.
Get the Code HERE!!! We can create a simple wizard in PHP using Vue.js. This is great for a single page application if you don't want to mess with a older built PHP application. You can deploy your form wizard using Vue.js and just point the form submit URL wherever you want it to go. … Continue reading Creating a Form Wizard in PHP using Vue.js
So I can't speak to if this is an allowed use of vue.js with PHP but it does work. I created some mini-apps to illustrate how Vue.js can be used as a better jQuery ( or just less verbose ) in PHP applications. I created four mini applications. General - This app just shows how … Continue reading Creating single page applications with Vue.js and PHP.