PHPackages                             kelvinmo/fernet-php - 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. kelvinmo/fernet-php

ActiveLibrary[Security](/categories/security)

kelvinmo/fernet-php
===================

An implementation of the Fernet token specification in PHP.

v1.0.1(4y ago)211.7M↓19.7%52BSD-3-ClausePHPPHP ^7.0 || ^8.0

Since Jan 1Pushed 4y ago2 watchersCompare

[ Source](https://github.com/kelvinmo/fernet-php)[ Packagist](https://packagist.org/packages/kelvinmo/fernet-php)[ Docs](https://github.com/kelvinmo/fernet-php)[ RSS](/packages/kelvinmo-fernet-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (2)

Fernet-PHP
==========

[](#fernet-php)

[![Latest Stable Version](https://camo.githubusercontent.com/e5c10d062884788bcabb015100863778a51c1b1e4f20d341b3cb08250c1dd52d/68747470733a2f2f706f7365722e707567782e6f72672f6b656c76696e6d6f2f6665726e65742d7068702f762f737461626c65)](https://packagist.org/packages/kelvinmo/fernet-php)[![Build Status](https://camo.githubusercontent.com/07caca30f712cf8becfaf10e65b332e5d54d85b9935a9b6066e555340ab5a1e4/68747470733a2f2f7472617669732d63692e6f72672f6b656c76696e6d6f2f6665726e65742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kelvinmo/fernet-php)

Fernet-PHP is an implementation of the [Fernet token specification](https://github.com/fernet/spec/blob/master/Spec.md)in PHP.

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

[](#requirements)

- PHP 7.0 or later
- `hash` extension
- `openssl` or `mcrypt` extension
- `mbstring.func_overload` needs to be switched **off** in `php.ini`

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

[](#installation)

You can install via [Composer](http://getcomposer.org/).

```
composer require kelvinmo/fernet-php
```

Usage
-----

[](#usage)

```
