Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ahmed-hamdy101/restful-api


https://github.com/ahmed-hamdy101/restful-api

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        


# PHP CRUD API

This is a simple PHP CRUD API that allows you to perform basic CRUD operations on a MySQL database.

## Prerequisites

* PHP 7.4 or later
* MySQL 5.7 or later
* WebServer : mamp , xammp

## Installation

1. Clone the repository

```
git clone https://github.com/your-username/php-crud-api.git
```

## Usage

The API is accessible at `http://localhost:8000/api`. You can use the following endpoints to perform CRUD operations:

* `GET /api/catagory` - Get all categories
* `POST /api/catagory` - Create a new category
* `GET /api/catagory/{id}` - Get a single category by ID
* `PUT /api/catagory/{id}` - Update a category by ID
* `DELETE /api/catagory/{id}` - Delete a category by ID

## Contributing

Contributions are welcome! Please submit a pull request if you have any improvements or suggestions.

## License

This project is licensed under the MIT license.