SNAP
on githubSNAP stands for shared namespace application programming. It’s a small PHP utility I wrote that allows you to write functions in PHP and wrap them up into javascript modules. This allows you to essentially call server side code from the browser without fussing with AJAX.
There’s still plently of work for this project. PHP runtime errors transition somewhat gracefully to javascript, but parse exceptions do not — in other words, a syntax error will throw a major wrench in the works.
Let’s look at some PHP!
Now let’s look at some HTML!