An open API service indexing awesome lists of open source software.

https://github.com/monzuralam/contact-hive

A simple REST API-based contact list with a PHP slim framework.
https://github.com/monzuralam/contact-hive

api php php-rest-api php-slim-framework rest rest-api

Last synced: 3 months ago
JSON representation

A simple REST API-based contact list with a PHP slim framework.

Awesome Lists containing this project

README

        

# Contact Hive
A simple REST API-based contact list with a PHP slim framework.

## Requirements
- PHP 7.4 or Upper
- MySQL
- Composer

## Installation
- Clone this repository via `git clone https://github.com/monzuralam/contact-hive.git` and enter `contact-hive`.
- Open the terminal & run the command `composer install`.
- Copy `.env.sample` to `.env` and provide database credentials.
- Ensure the MySQL server / phpMyAdmin is running and create a database `contacts`.
- Open the terminal & run the command `php migrate.php`.
- Now, open php webserver by `php -S localhost:8000 -t public`.
- Access in browser `localhost:8000` & open `postman` and make a `get` request `localhost:8000`.

## Documentation
### Routes