PHP Classes
elePHPant
Icontem

PHP JWT Library API Base: Send authenticated API requests using JWT

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-05-19 (18 days ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
jwtapibase 1.0GNU General Publi...5PHP 5, Web services
Description Author

This class can send authenticated API requests using JWT.

It takes a user name and password and obtains a JSON Web Token from a API Web server.

The class can also send authenticated requests to a specified API URL passing given parameters and the previously obtained JSON Web Token.

Name: andy honeycutt <contact>
Classes: 4 packages by
Country: United States United States

Details

README

JWT Api Base is a simple wrapper class for handling JWT auth and endpoint requests.

Configure

Modify the first few lines to define the api base auth URL for your JWT-auth enabled API, if needed change the username and password parameters to mirror the username and password fields required by your API provider.

For example:

define("URL_SUFFIX_AUTH", 'api-auth/');
define("PARAM_USERNAME", 'username');
define("PARAM_PASSWORD", 'password');

Changes to:

define("URL_SUFFIX_AUTH", 'jwt-auth/');
define("PARAM_USERNAME", 'user');
define("PARAM_PASSWORD", 'pass');
  Files folder image Files  
File Role Description
Plain text file class.jwtapibase.php Class Class source
Accessible without login Plain text file jwtclient_example.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads  
 100%
Total:0
This week:0