Slim function in php


Hits: 1576  

Slim is a simple powerful PHP 5 framework to create RESTful web applications. The Slim micro framework is a template language whose goal is reduce the syntax to the essential parts without becoming cryptic.

<?php
require 'Slim/Slim.php';
Slim::init();
Slim::get('/hello/:name', function ($name) {
    echo "Hello $name";
});
Slim::run();
?>

How to install Slim

Bookmark and Share