PHP Package: web-token/jwt-library

A PHP library for JSON Web Tokens with secure authentication and authorization features.

Current Version: 4.0.4
Last Updated: Date not available
PHP Requirement: >=8.2
Dependencies:
web-token/jwt-key-mgmt
web-token/jwt-key-loader
web-token/jwt-signature-algorithm
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The JWT library for PHP offers comprehensive support for generating, parsing, and validating JSON Web Tokens, enabling reliable user authentication and authorization within applications. It provides robust security measures, customizable token settings, and extensive documentation for seamless integration into various projects.

🔗 View on GitHub

Download Latest Version: 4.0.4

Download Download v4.0.4

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/web-token/jwt-library/4.0.4/loader.php';
require_once 'libs/web-token/jwt-key-mgmt/3.0.7/loader.php';
require_once 'libs/web-token/jwt-key-loader/{lib_version}/loader.php';
require_once 'libs/web-token/jwt-signature-algorithm/{lib_version}/loader.php';

use WebToken\JWT\Token;
use WebToken\JWT\Parser;

$obj = new Token();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.