Skip to content

Instantly share code, notes, and snippets.

@peterlafferty
Created November 9, 2017 23:41
Show Gist options
  • Save peterlafferty/1de6b654bf90fa042dfd510311956cce to your computer and use it in GitHub Desktop.
Save peterlafferty/1de6b654bf90fa042dfd510311956cce to your computer and use it in GitHub Desktop.
example silex application for use with integration test that runs built in php web server
<?php
// web/index.php
require_once __DIR__.'/vendor/autoload.php';
$app = new Silex\Application();
$app->get('/testpage/', function () {
return "LOL";
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment