Author: ShairyPortfolio
-

PHP REST API CRUD – Step 4
Step 4 Create user Create the objects folder inside api folder and create a new file called user.php
-

PHP REST API CRUD – Step 3
Step 3 Create a directory for configuration Create the folder in XAMP/P -> htdocs with any name like PHP REST API CRUD with JWT Authentication Open this folder and create api folder and necessary files if required like index, style, script etc. Open api folder and create config folder. Open config folder and create a…
-

Step by Step Guide of PHP REST API
Step 1: Create a Database Either create the database manually or from the phpmyadmin with any name like phprestapi Step 2 Create a Table Either create the table manually or from the phpmyadmin with any name like register in phprestapi database.
-

User Authentication using REST API and JSON Web Tokens (JWT) – Step 7
Login user with JSON Web Token Almost all the process is similar as we done in previous step for login user but now we do the same thing with JWT. For this we have to perform the following steps: Now create Login Function in user. php of object folder 2. Use theses line in the…