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.
- Host: GitHub
- URL: https://github.com/monzuralam/contact-hive
- Owner: monzuralam
- Created: 2024-08-02T13:26:42.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T14:04:08.000Z (11 months ago)
- Last Synced: 2025-01-21T01:11:46.627Z (5 months ago)
- Topics: api, php, php-rest-api, php-slim-framework, rest, rest-api
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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