Slim function in php


Hits: 2345  

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

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch

12 thoughts on “Slim function in php”

  1. I simply couldn’t go away your website before suggesting that
    I extremely enjoyed the standard info a person supply in your guests?
    Is gonna be back often to investigate cross-check new posts

  2. I’m very pleased to find this website. I need to to
    thank you for ones time just for this wonderful read!!

    I definitely enjoyed every part of it and i also have you book-marked to
    look at new information on your site.

  3. Its like you read my mind! You appear to know a lot about this, like
    you wrote the book in it or something. I think that you can do with some pics to drive the message home a
    little bit, but other than that, this is wonderful blog.
    A fantastic read. I will definitely be back.

  4. Good day! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest authoring a blog
    post or vice-versa? My website addresses a lot of
    the same topics as yours and I feel we could greatly benefit from each other.

    If you happen to be interested feel free to send
    me an e-mail. I look forward to hearing from you!
    Fantastic blog by the way!

  5. Hmm is anyone else encountering problems with the images on this blog loading?
    I’m trying to determine if its a problem on my end or if
    it’s the blog. Any responses would be greatly appreciated.

  6. Hey there would you mind letting me know which webhost you’re working with?

    I’ve loaded your blog in 3 different web browsers and I must say this blog loads
    a lot quicker then most. Can you suggest a good internet hosting provider at
    a reasonable price? Many thanks, I appreciate
    it!

  7. An impressive share! I have just forwarded this onto a co-worker who has been doing a
    little homework on this. And he in fact ordered me breakfast because I stumbled upon it for
    him… lol. So allow me to reword this…. Thank YOU for
    the meal!! But yeah, thanx for spending the time to talk about this matter here on your web site.

  8. hello!,I love your writing very so much!
    proportion we communicate more about your post on AOL?
    I need an expert in this space to unravel my problem.
    Maybe that’s you! Having a look forward to see you.

  9. I don’t even know how I ended up here, but I thought this
    post was good. I don’t know who you are but certainly you
    are going to a famous blogger if you aren’t already 😉 Cheers!

Leave a Reply

Your email address will not be published.

*