Create a PHP 8 CRUD (Create, Read, Update, Delete) RESTful API with an MySQL database.

Overview

Créer une API RESTful PHP 8 CRUD (Create, Read, Update , Delete) simple avec MySQL et PDO (PHP Data Objects)

Détails du référentiel :

  • Lire, insérer, mettre à jour, supprimer un enregistrement

Manuel d'utilisation :

  • Besoin de télécharger ou de cloner le projet
  • Créer une base de données nommée phpapidb
  • Créez une table nommée `users`
  • Les requêtes de table sont données ci-dessous
  • Nécessité de mettre le nom d'utilisateur et le mot de passe mySQL dans le fichier Configuration/database.php
  • Et vous avez terminé !
  • Allez simplement dans votre navigateur et écrivez localhost !
  • Et oui, le plus important -- Vous devez installer Apache, PHP et MySQL sur votre ordinateur :)(Ps: J'utilise un environnement de développement :Laragon-wamp)

Prérequis :

  • Connaissances en POO comme classe, objet, méthode, namespace, interface

users Requêtes de table

  • CREATE TABLE IF NOT EXISTS users (
  • id int(11) NOT NULL AUTO_INCREMENT,
  • name varchar(255) NOT NULL,
  • email varchar(50),
  • age int(11) NOT NULL,
  • password varchar(255) NOT NULL,
  • PRIMARY KEY (id)
  • )ENGINE=InnoDB DEFAULT CHARSET=utf8;

Hiérarchie des dossiers :

Hiérarchie des dossiers

Test de l'API à l'aide de POSTMAN

Ouvrons Postman et utilisons les URLs 👇🏾 cliquez sur le bouton Send pour vérifier la sortie.

You might also like...
A Full Stack login/register system using a MySQL database to store the information
A Full Stack login/register system using a MySQL database to store the information

This is a Full Stack login/register system using a MySQL database to store the information. I created this to sharpen my Full Stack Development skills.

A PHP library to read and write feeds in JSONFeed, RSS or Atom format

feed-io feed-io is a PHP library built to consume and serve news feeds. It features: JSONFeed / Atom / RSS read and write support Feeds auto-discovery

Simple RESTful Web App to find Real Estate Listings

Unreal Estate is a simple RESTful web app that allows the user to find Real Estate listings they might be interested in. Unreal Estate is built on Laravel 5 and PHP 7.

The objective of this project is to manage The Website Manga, this site permits to Client to show, read and download Manga with the possibility to react, vote, and save his data.
The objective of this project is to manage The Website Manga, this site permits to Client to show, read and download Manga with the possibility to react, vote, and save his data.

The objective of this project is to manage The Website Manga, this site permits to Client to show, read and download Manga with the possibility to react, vote, and save his data.

CRUD php application to check in and check out employees and show daily building occupation
CRUD php application to check in and check out employees and show daily building occupation

CRUD php application to check in and check out employees and show daily building occupation. Employees are required to self check their temperature and tick a checkbox to specify whether their temperature is below 38°C else they are invited to stay home. (Implemented in php with bootstrap4 for styling and datatable jquery plugin for table formatting and additional features).

Create videos programmatically in the cloud from PHP: add watermarks, resize videos, create slideshows, add soundtrack, voice-over with text-to-speech (TTS), text animations.

Create videos programmatically in the cloud from PHP: add watermarks, resize videos, create slideshows, add soundtrack, voice-over with text-to-speech (TTS), text animations.

A micro web application providing a REST API on top of any relational database, using Silex and Doctrine DBAL

Microrest is a Silex provider to setting up a REST API on top of a relational database, based on a YAML (RAML) configuration file.

Shoutit is a PHP powered shoutbox which uses mySQL to store shouts
Shoutit is a PHP powered shoutbox which uses mySQL to store shouts

This is a very basic PHP/MySQL application. built to prove my usuage of basic php + MySQL. It is very easy to use, has error checking, and very fast. Users can post shouts along with their names & comment.

Um chat web feito com HTML, CSS, SASS, JS, PHP e MYSQL

ChatWeb Tecnologias Front-end usadas: Pré processador CSS: Linguagem de programação usada: Projeto hospedado no: Editor de texto usado: Objetivos: Par

Owner
HOUESSOU Béryl
Programmer • Student at HECM, Cotonou(Bénin) in 2nd year • C, C++, JS, HTML, CSS , PHP, and more •
HOUESSOU Béryl
Desarrollo de una aplicación muy sencilla, desarrollada con HTML - Bootstrap - PHP - (PDO)- Mysql. (Login - Registro - Create Read Update Delete)

php-mysql-aplicacion-web Desarrollo de una aplicación muy sencilla, desarrollada con HTML - Bootstrap - PHP - (PDO)- Mysql. (Login - Registro - Create

Ángel Daniel Fuentes Segura 4 Sep 18, 2022
Subscriptify - a simple subscription platform(only RESTful APIs with MySQL)

Create a simple subscription platform(only RESTful APIs with MySQL) in which users can subscribe to a website (there can be multiple websites in the system). Whenever a new post is published on a particular website, all it's subscribers shall receive an email with the post title and description in it. (no authentication of any kind is required)

Md Rafsan Jani Rafin 2 Mar 24, 2022
A blog website where you can create/edit/delete blogs.

A blog website where you can create/edit/delete blogs. All the data will be caught from the DB, but here's the catch: I'm doing this project in Laravel 8.

null 1 Dec 8, 2021
A simple RESTful non-blocking API, to send and receive money

A simple RESTful non-blocking API, to send and receive money.

Daniel Rodrigues 3 Dec 19, 2022
Bulit PHP Twitter Clone IN OOP style and using MYSQL Database.

Bulit PHP Twitter Clone IN OOP style and using MYSQL Database. AJAX and Jquery for requests without reloading like Follow/unfollow, like, Search users, Show popups like comment , User lists, etc.

Amin 47 Dec 3, 2022
Open Source Voucher Management System is a web application for manage voucher. used PHP with Laravel Framework and use MySQL for Database.

Voucher Management System is a web application for manage voucher. You can create and manage your voucher. Voucher Management System is used PHP with Laravel Framework and use MySQL for Database.

Artha Nugraha Jonar 34 Sep 17, 2022
Created simple login system and chat type website using mysql database along with php and html , css and javascript.

Created simple login system and chat type website using mysql database along with php and html , css and javascript.

null 1 Jan 6, 2022
🔐 Password Manager written in PHP with MySQL database.

Password Manager A very basic password manager. Tech stack: PHP MySQL Bootstrap Setup Download and install XAMPP. Clone this repository: git clone htt

Olivér 4 Jun 25, 2022
A monthly payment report using HTML, CSS, PHP and MySQL database

A monthly payment report using HTML, CSS, PHP and MySQL database

Erick Silvério Blass 3 Jun 5, 2022
Well secured MySQL Database Login and Registration with an seperate dashboard for consumers and admins.

WebApplicationPHP Well secured MySQL Database Login and Registration with an seperate dashboard for consumers and admins. Functions Well secured MySQL

z3ntl3 root 1 Jan 21, 2022