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)

No comments:

Post a Comment