ownload and extract the Slim Framework into your project directory and require
it in your application's index.php
file. You'll also need to register Slim's autoloader.
<?phprequire 'Slim/Slim.php';\Slim\Slim::registerAutoloader();
Instantiate a Slim application:
$app = new \Slim\Slim();
Define a HTTP GET route:
$app->get('/hello/:name', function ($name) { echo "Hello, $name";});
Run the Slim application:
$app->run();
联系客服