Learn PHP Rest API Development with JWT Token for Beginners #12 Install PHP JWT Library REST API
In this video we'll see:
INSTALL PHP JWT ERROR TO REST API
WHAT IS JWT ?
=====================
JWT stands for JSON Web Token and comprised of user encrypted information that can be used
to authenticate users and exchange information between clients and servers.
JWT tokens are simply encrypted user's information like identifier, username, email and
password.
Structure: Header.Payload.Signature
PHP-JWT Library
====================
php-jwt is a PHP library that allows you to encode and decode JSON Web Tokens (JWT) in
PHP, conforming to RFC 7519.
So, to Install this library we need,
PHP 7, Composer and MySQL database system installed on your development
environment.
$ sudo apt install composer
Installing php-jwt
==========================
1. To install the php-jwt library using Composer. In our terminal, run the following
command from the root of your project's directory:
$ composer require firebase/php-jwt
This will donwload the php-jwt library into a vendor folder.
2. How to include in PHP files
require "vendor/autoload.php";
use \Firebase\JWT\JWT;
POSTMAN CHORE EXTENSION TOOL LINK
https://chrome.google.com/webs....tore/detail/postman/
SOCIAL :
===============
Subscribe : https://www.youtube.com/owthub
FACEBOOK : https://www.facebook.com/owthub
TWITTER: https://twitter.com/owthub
BLOG: https://onlinewebtutorhub.blogspot.in/
UDEMY: https://www.udemy.com/user/online-web-tutor
Other Tutorials
===============
Wordpress Customizations:
---------------------------------
Wordpress Theme (Hindi): https://goo.gl/MZ8maF
Wordpress Widget (Hindi): https://goo.gl/Dc2htn
Wordpress Plugin (English): https://goo.gl/BA7dYG
Wordpress Theme Options (English): https://goo.gl/Vjv3Ub
Wordpress JSON Rest API (English): https://goo.gl/SVQRQR
Wordpress JSON Rest API (Hindi): https://goo.gl/NNWfKa
and many more...
Javascript framework:
----------------------------------
Learn backbone.js here! (English) : https://goo.gl/Qd2Pcs
Learn Vue JS here ! (Hindi): https://goo.gl/MVtsmh
PHP Frameworks:
----------------------------------
Laravel tutorial (Hindi): https://goo.gl/Nh9qJk
CakePHP tutorial (Hindi): https://goo.gl/uRsS3G
Tags:
----------------------------------
REST api development tutorial for beginners,
PHP api development tutorials for beginners,
API development in PHP,
PHP rest api development fro scratch,
api development tutorials in php
rest api development from scratch,
php apis development,
complete guide for developing rest apis in php,
REST apis beginners tutorials in php
step by step apis development in php for beginners,
online web tutor api development tutorials in php,
Learn PHP Rest API Development with JWT Token,
online web tutor sanjay,
online web tutor
Thanks
Online Web Tutor
Keep learning and Sharing :)