my thought of the day: "give me client-side php"

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
User avatar
phpRob
New php-forum User
New php-forum User
Posts: 65
Joined: Mon Feb 26, 2018 7:15 am

Wed Mar 07, 2018 8:45 am

JavaScript is great, flexible, powerful, widely useful. It just works and just about everywhere. Even now it works on the server (node.js; etc?) You can implement OOP using JS. But php is awesome too. I'd argue more awesome. I believe, unless I've missed something new and great and in the works, that php is still shackled to the server (yes, it is, as of this post). Why!-why I tell you! Give me php on the client-side! Let me run it in the browser! Let me have all those latest-and-greatest features provided by php 7 in the browser! Let me stop having to pay attention to my concatenation operators ("." and "+") and more importantly go with a single language syntax. Let's see...do I ".push(val)" that element into my array or do I do a "[ ]=$val;". Dollar signs in front of my variables? Ugh. Let me type-hint for function args/parameters and return values. Let me create an object-hierarchy on the client-side without some crazy work-around to achieve object-member scope/visibility/hiding. I admit, my code-base is invested heavily in php. But php is damn good also. JavaScript runs on the server now. Why doesn't PHP run on the browser now. Let's get that damn library running. I know it's doable since I can run XAMPP on my local machine. Please put that PHP engine in the browser.

Post Reply