PHPackages                             soatok/wp-paseto - 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. [Security](/categories/security)
4. /
5. soatok/wp-paseto

ActiveLibrary[Security](/categories/security)

soatok/wp-paseto
================

PASETO v4.local implementation that supports PHP 5.6+ (for WordPress projects)

v0.2.0(2y ago)03[1 issues](https://github.com/soatok/wp-paseto/issues)ISCPHPPHP &gt;= 5.6

Since Oct 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/soatok/wp-paseto)[ Packagist](https://packagist.org/packages/soatok/wp-paseto)[ RSS](/packages/soatok-wp-paseto/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

PASETO for WordPress
====================

[](#paseto-for-wordpress)

[![Build Status](https://github.com/soatok/wp-paseto/actions/workflows/ci.yml/badge.svg)](https://github.com/soatok/wp-paseto/actions)[![Static Analysis](https://github.com/soatok/wp-paseto/actions/workflows/psalm.yml/badge.svg)](https://github.com/soatok/wp-paseto/actions)[![Latest Stable Version](https://camo.githubusercontent.com/81a2053df484c1bfe3bb657a1a146ffeda7b59c4a2301d1df5ef8c298847c347/68747470733a2f2f706f7365722e707567782e6f72672f736f61746f6b2f77702d70617365746f2f762f737461626c65)](https://packagist.org/packages/soatok/wp-paseto)[![Latest Unstable Version](https://camo.githubusercontent.com/55ffd2c84fd0a9f3657e4198d4243e19bd6879958842019300a9866e6be99e99/68747470733a2f2f706f7365722e707567782e6f72672f736f61746f6b2f77702d70617365746f2f762f756e737461626c65)](https://packagist.org/packages/soatok/wp-paseto)[![License](https://camo.githubusercontent.com/81445d75d7499d8fbc8347ea917a5516736a047a0ac4689971512d626f48fc51/68747470733a2f2f706f7365722e707567782e6f72672f736f61746f6b2f77702d70617365746f2f6c6963656e7365)](https://packagist.org/packages/soatok/wp-paseto)[![Downloads](https://camo.githubusercontent.com/80459036354d9259ac7ea62a6988a41afbd488c601811248f467330a5dd4ffc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f61746f6b2f77702d70617365746f2e737667)](https://packagist.org/packages/soatok/wp-paseto)

Requirements:

- PHP 5.6 or newer

Recommended:

- PHP 7.2 or newer
- Sodium extension

Supports key rotation. Implements `v4.local.` only!

Installing
----------

[](#installing)

```
composer require soatok/wp-paseto

```

Usage
-----

[](#usage)

Provide an array of `key id strings` mapped to hex-encoded keys to the constructor. Then you can `encode()` and `decode()` arrays containing arbitrary claims.

```
