Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@kamen
Nah I didnt remember function name and was too sleepy to realize its wrong language -
Flygger19814yJust leave it at remembering one syntax ;)
Go light: https://github.com/hirak/phpjs
Or, go heavy: https://github.com/niklasvh/php.js -
Flygger19814y@kamen The same reason as most things in JavaScript; it was possible and seemed like a nice thing to get working?
At any rate it actually was possible and might make sense for some to use, basically catering to the same idea as Node in using the same language in front and back end...
Next step from any of those takes might even be implementing a complete PHP interpreter/compiler/runtime in JavaScript to bring it properly to the client environment... -
@kamen
Let me rephraze your question so you can anwser it in your own words
Why would anyone use libs?
Edit:
@Flygger
I love php -> js transpiler idea, would gladly use it.
After quick google i found this https://github.com/tito10047/...
Maybe javascript isnt that bad afterall?
Related Rants
µRant
Doing a little bit of javascript and php at same time.
Im sleepy.
I am looking for function in JS that is bugged to fix, but accidently opened php file instead.
It took me hot minute of annoyance that I cant find darn function I am looking for.
time for coffee or sleep for once.
rant
sleepy