PHPackages                             elementworks/jwt-tokens - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. elementworks/jwt-tokens

ActiveCraft-plugin

elementworks/jwt-tokens
=======================

Create JWT tokens

1.0.4(2y ago)010proprietaryPHP

Since Apr 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/elementworks/jwttokens)[ Packagist](https://packagist.org/packages/elementworks/jwt-tokens)[ RSS](/packages/elementworks-jwt-tokens/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

JWT Tokens plugin for Craft CMS 3.x
===================================

[](#jwt-tokens-plugin-for-craft-cms-3x)

Create JWT Tokens in Twig.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require elementworks/jwt-tokens

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for JWT Tokens.

Settings
--------

[](#settings)

The only setting is a signing secret. It is recommended to set this using an [environment variable](https://docs.craftcms.com/v3/config/environments.html).

How to create a JWT Token
-------------------------

[](#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:

```
{% set payload = {
   'name': 'John Doe',
   'company': 'Google',
} %}

{% set token = craft.jwtTokens.createToken(payload, 'HS256') %}
```

Brought to you by [Steve Rowling](https://springworks.co.uk)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

767d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8673238f1ab870d6187f893369df38c5bfb18205a5afdd90b625abbcec7d8a0c?d=identicon)[elementworks](/maintainers/elementworks)

---

Top Contributors

[![steverowling](https://avatars.githubusercontent.com/u/4478560?v=4)](https://github.com/steverowling "steverowling (5 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginjwt tokens

### Embed Badge

![Health badge](/badges/elementworks-jwt-tokens/health.svg)

```
[![Health](https://phpackages.com/badges/elementworks-jwt-tokens/health.svg)](https://phpackages.com/packages/elementworks-jwt-tokens)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
