Download the PHP package elementworks/jwt-tokens without Composer
On this page you can find all versions of the php package elementworks/jwt-tokens. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download elementworks/jwt-tokens
More information about elementworks/jwt-tokens
Files in elementworks/jwt-tokens
Download elementworks/jwt-tokens
More information about elementworks/jwt-tokens
Files in elementworks/jwt-tokens
Please rate this library. Is it a good library?
Informations about the package jwt-tokens
JWT Tokens plugin for Craft CMS 3.x
Create JWT Tokens in Twig.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require elementworks/jwt-tokens
- In the Control Panel, go to Settings → Plugins and click the “Install” button for JWT Tokens.
Settings
The only setting is a signing secret. It is recommended to set this using an environment variable.
How to create a JWT Token
First, create a payload as a Twig hash (associative array).
Next, pass this into the Twig function, along with the algorithm (e.g. 'HS256'
) to create the token:
Brought to you by Steve Rowling
All versions of jwt-tokens with dependencies
PHP Build Version
Package Version
The package elementworks/jwt-tokens contains the following files
Loading the files please wait ....