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

https://github.com/bankole2000/phprestapi

Basic RESTful API built with PHP and MySQL
https://github.com/bankole2000/phprestapi

mysql pdo php rest

Last synced: 18 days ago
JSON representation

Basic RESTful API built with PHP and MySQL

Awesome Lists containing this project

README

        

# Simple PHP MySQL REST API

⭐️Basic Implementation of RESTful API with PHP and MySQL - [View Documentation](https://bankole2000.github.io/eventfinder)

[![Practice](https://img.shields.io/badge/Practice-PHP-purple.svg)]()

_

"I grew up learning Php 🐘 ... And I love RESTful APIs... See where I'm going with this?"

_



## What it is

An very basic, well-commented, learning oriented, basic Restful API for a simple Blog Built with:

- PHP 🐘
- MySQL

## :electric_plug: What it does
Features 2 basic resources - **Posts** and **Categories** and API endpoints to handle basic Client Requests;
- _Post_ (Create) new Posts and Categories
- _Get_ all Posts/Categories
- _Get_ single Post/Category by `id` in query string
- _Update_ and _Delete_ single Post/Category by `id` in body

## 💡Learning Points

- PHP Classes
- PDO
- Postman
- API Documentation

## Some cool stuff

I'll gist about this later... but it's coming alright...

```php
/* Some Php code will be here... It's just classes
mostly */
```

> Also (Just a sidenote), I personally find this a lot easier to understand and build than `NodeJS` & `Express` APIs.

## Features in Development
More areas to explore in this regard are
* 🙎 User Authentication
* 🔏Protected Routes
* 📃Handling Multiform data

## Contribution

Contributions are highly welcome. Feel free to fork, clone, make pull requests, report issues etc.

## Acknowledgments

- Many thanks to [@bradtraversy](https://github.com/bradtraversy) ❤️😎 for his awesome courses - _i will not fail you sensei_
- Thanks to [@torvalds](https://github.com/torvalds) 🙏 For Making the world a better place
- And To anyone reading this... _You're awesome!_

That being said
_

Adieu, Come with me, let us go to the back end and be RESTful_ 😄