Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nithink-142/php-crud
A simple php api to perform crud opearions.
https://github.com/nithink-142/php-crud
mysql php xampp
Last synced: about 1 month ago
JSON representation
A simple php api to perform crud opearions.
- Host: GitHub
- URL: https://github.com/nithink-142/php-crud
- Owner: nithinK-142
- Created: 2024-05-01T10:29:41.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T10:57:24.000Z (9 months ago)
- Last Synced: 2024-05-08T11:45:16.451Z (9 months ago)
- Topics: mysql, php, xampp
- Language: PHP
- Homepage: http://php-crud.wuaze.com/users
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP CRUD
A simple php api to perform crud opearions.
### Setup Instructions
1. Install XAMPP (or any other PHP development environment).
2. Clone this repo and move it to the xampp/htdocs/ directory.##### API Endpoints
#### GET
all users
```bash
http://localhost/php-crud/users/
```single user
```bash
http://localhost/php-crud/user/1
```#### POST
create user
```bash
http://localhost/php-crud/user/save
```req body
```bash
{
"name":"one",
"email":"[email protected]",
"mobile":"1234567890"
}
```#### PUT
edit user
```bash
http://localhost/php-crud/user/1/edit
```req body
```bash
{
"name":"oneone",
"email":"[email protected]",
"mobile":"1234567890"
}
```#### DELETE
delete user
```bash
http://localhost/php-crud/user/1/delete
```