JSON Web TokenJSON Web Token
Home
Documentation
GitHub
  • English
  • 简体中文
Home
Documentation
GitHub
  • English
  • 简体中文
  • Introduction

    • Installation
    • Supported Algorithms
  • Usage

    • Configuration
    • Issuing tokens
    • Parsing tokens
    • Validating tokens
  • Guides

    • Extending the library

Installation

This package is available on Packagist and you can install it using Composer.

By running the following command you'll add token/jwt as a dependency to your project:

composer require token/jwt

Autoloading

Note We'll be omitting the autoloader from the code samples to simplify the documentation.

In order to be able to use the classes provided by this library you're also required to include Composer's autoloader in your application:

require 'vendor/autoload.php';

Tip If you're not familiar with how composer works, we highly recommend you to take some time to read it's documentation - especially the autoloading section.

Last Updated:: 4/15/25, 8:29 PM
Contributors: jundayw
Next
Supported Algorithms