Fixed code to work with latest framework updates
Added an alternative method using PHP's built-in web server