To use this library all you need to do is to download the php.js file and include it in your page:
This should return ‘http%3A%2F%2Fblogs.vinuthomas.com%2F’. As easy as that !
Edit: As Kevin mentioned in the comments below, don’t use the entire php.js file in your projects, just use the function you need.
History of PHP.JS from (phpjs.org):
It was decided that the library deserved a bigger home, and a face of its own, and so the PHP.JS core team (which at that time also consisted of Michael White, Felix Geisendörfer, Philip Peterson) developed the phpjs.org website