Thursday, April 22nd, 2010>p>
The homepage explains some of the philosophy behind this project:
PHP is a language with many high-level functions and while they’re not always implemented as consistently as we’d like (mostly to blame on its underlying C parts), it has a huge following familiar with its syntax so it makes sense to pick its API as a reference. Eliminating the need for our own documentation, thus making life easier, we hope.
We recognize JS – on the other hand – has beautiful language features, and we encourage you to learn them. Never let php.js be an excuse not to.
For the same reason, we’re not porting entire language or control structures of PHP; we stick with the functions.
Moreover, there is significant progress here: project founder Kevin van Zonneveld yesterday announced CommonJS support. The homepage indicates it’s “first steps”, but longer term, this potentially brings a huge corpus of library functions into the realm of CommonJS, a win for reuse and a win for all the PHPers getting into JS.
Posted by Michael Mahemoff at 10:11 am