Showing posts with label slim. Show all posts
Showing posts with label slim. Show all posts

Monday, July 6, 2015

Basic setup of PHP slim framework for creating REST API

# php-slim-basic-setup

1. Im using Netbeans for my PHP Development

2. This project is a basic setup of PHP slim framework for creating REST Api.
   Github : https://github.com/chandan2588/php-slim-basic-setup

3. Download & Copy project in your system and host it under apache

4. To test this use cURL or you can use this google chrome extension 
Check out "Postman - REST Client": https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm

5. Url Examples :
   http://localhost/Location/vendor/slim/slim/index.php/
   http://localhost/Location/vendor/slim/slim/index.php/post
   http://localhost/Location/vendor/slim/slim/index.php/getdata/16
   
   My Project Folder Structure :
   
   Location (Root Folder)
   |__Vendor
      |__slim
         |__slim---> Index.php
            |__Slim (slim lib files)

Monday, September 8, 2014

Creating Restful Services/API using the Slim Framework for PHP || Calling API using Jquery

I was trying to create Rest Api using PHP , then i came across this Slim framework for php, which lets us create powerful APIs.

This below link shows how to create RESTful API using Slim framework and also how to call that api using Jquery.