/SinglePageJS

Create singlePageApps with php and jquery.

Primary LanguagePHPMIT LicenseMIT

SinglePageJS

make single page apps with php & javascript, no extra FrameWorks and bloat.

This is a demo showcasing singlePageApps with simple tools

release license

features

  • fast & ready to work,
  • only contains functions that you use
  • ultra-lite, easy to get-started and understand
  • execute commands from js <=> php seamlessly
  • execute server side functions from client side along with arguments(ofc only allowed functions)
  • change dom elements from server side
  • retains order of the cmd chain

how it works

two scripts are present:

client side script & server side, client side script is generated and attached to the page during initial load, after that is done, all other interactions are done with server side script.

server acts as a command & control center, client just follows the commands given by the server.

all commands from the server are in queue, they are executed in order


how it is visible

below is how the ajax request appears ,configure it to your liking

''

the response is decoded automatically and processed

configurations

change the config in the interface

''


using gulp to combine js

all the js files are put separately based on its logic, use gulp to generate a combined version of the script.

npm install gulp

npm install gulp-concat

gulp js-minify


> See the demo src inside Demo folder, check the link down live demo here