niklasvh / php.js

PHP to JavaScript converter and VM written in JavaScript
http://phpjs.hertzen.com
MIT License
860 stars 115 forks source link

Example from Readme Throws #56

Closed sstur closed 10 years ago

sstur commented 10 years ago

This example from Readme throws. It is expecting a second parameter, opts.

var engine = new PHP ('<?php echo "Hello world!"; ?>');
niklasvh commented 10 years ago

Thanks! I've updated the readme as well as made the options really optional now.

https://github.com/niklasvh/php.js/commit/817d2db3932002db82407aeb37b8c1a5ed9a5e51