Giter Club home page Giter Club logo

crudusingoopinphp's Introduction

Créer une API 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.

crudusingoopinphp's People

Contributors

beryl452 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dheia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.