Skip to content

Slim is a PHP micro-framework that helps us quickly write simple yet powerful web applications and APIs. In this project, I have built a complete JSON RESTful API using PHP and MySQL. And I used the SlimPHP framework along with PDO to interact with the MySQL database.

Notifications You must be signed in to change notification settings

saku-xyz/SLIM-CRUD-APIs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLIM-CRUD RESTful API

This is a RESTful api built with the SlimPHP framework and uses MySQL for storage.

Installation

  1. Clone the repo

  2. Create database or import from _sql/slimapp.sql

  3. Edit db/config params

  4. Install SlimPHP and dependencies

$ composer install

API Endpoints

$ GET /api/customers
$ GET /api/customer/{id}
$ POST /api/customer/add
$ PUT /api/customer/update/{id}
$ DELETE /api/customer/delete/{id}

About

Slim is a PHP micro-framework that helps us quickly write simple yet powerful web applications and APIs. In this project, I have built a complete JSON RESTful API using PHP and MySQL. And I used the SlimPHP framework along with PDO to interact with the MySQL database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages