Skip to content

LiTHehack/php-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-rest-api

A simple php rest api. Presented during "Vadå Web - Del 2: RESTen" 7 march 2014. Based on the Slim PHP Microframework.

##Installation Is somewhat manual, but keeps the repo clean and intuitive:

  1. Create a database (with possible user)
  2. Create a table named "books" with the following columns:
  • "id" - INT, primary key, auto incrementing
  • "title" - VARCHAR
  • "author" - VARCHAR
  • "year" - INT (to keep it simple)

An alternative to the above mathod would be to import database/php-rest-db.sql into an existing mysql installation.

Fill in your details in database/config.php.

##Usage Use as data source for any HTTP-request capable client (JQuery, Angular, AndroidSDK, Curl, Postman, HTML form, plain javascript xmlhttp request).

About

A simple php rest api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages