Skip to content

Instantly share code, notes, and snippets.

@leonrenkema
Created January 20, 2016 08:04
Show Gist options
  • Save leonrenkema/81a388662b3ab35b07c0 to your computer and use it in GitHub Desktop.
Save leonrenkema/81a388662b3ab35b07c0 to your computer and use it in GitHub Desktop.
<?php
require_once('vendor/autoload.php');
$app = new Silex\Application();
$app->get('/person/{id}', function ($id) use ($app) {
$result = [
'name' => 'Person Name'
];
return $app->json($result);
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment