/SLIM-CRUD-APIs

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.

Primary LanguagePHP

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}