Is there anything like TypeScript or MoonScript for PHP? A source-to-source language that tries to mitigate the quirks and issues with the target language.
Just pick a better language (e.g. Python/Ruby/Groovy/C#). Period. And JavaScript was never as horrible as PHP anyway, in my opinion.
The thing is, you have more control over what language you can run on the server-side, whereas all your web browser clients run JavaScript. So it made sense to have a transpiler targeting JavaScript.
I wasn't trying to credit the language. Just curious about the state of the ecosystem.
I had the displeasure of PHP being the first "programming language" I came across. Most of my knowledge was gleaned from w3schools and various web pages scattered around the web. I recall doing a lot of Googling while trying to figure out edge cases and such.