PHPackages                             spomky-labs/jose-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. spomky-labs/jose-bundle

Abandoned → [web-token/jwt-framework](/?search=web-token%2Fjwt-framework)ArchivedSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

spomky-labs/jose-bundle
=======================

Symfony2 Jose Bundle

v2.3.0(8y ago)832.4k1[1 PRs](https://github.com/Spomky-Labs/jose-bundle/pulls)MITPHP

Since Apr 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Spomky-Labs/jose-bundle)[ Packagist](https://packagist.org/packages/spomky-labs/jose-bundle)[ Docs](https://github.com/Spomky-Labs/jose-bundle)[ RSS](/packages/spomky-labs-jose-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (13)Versions (28)Used By (0)

Jose Bundle
===========

[](#jose-bundle)

Help me out for a couple of 🍻!

[![Beerpay](https://camo.githubusercontent.com/2e90971a5287f05c7863699c2c6fe0949f80626e2b24f08ca39d7ea28b4f4ed6/68747470733a2f2f626565727061792e696f2f53706f6d6b792d4c6162732f6a6f73652f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/Spomky-Labs/jose) [![Beerpay](https://camo.githubusercontent.com/2263072485f7de6c977366b4e4e0adc7879065c20cdc9b6d86effd8bdf4cd970/68747470733a2f2f626565727061792e696f2f53706f6d6b792d4c6162732f6a6f73652f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/Spomky-Labs/jose?focus=wish)

---

⚠️⚠️⚠️

We highly recommend you to use the new [JWT Framework project](https://github.com/web-token/jwt-framework) instead of this bundle.

- Active support of this bundle is provided until **end of 2018**.
- Security support will be provided **from 2019 and up to end of 2020**.

A migration guide will be/is available in [the documentation of the new project](https://web-token.spomky-labs.com/migration/spomky-labs-jose/).

⚠️⚠️⚠️

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/efbfb30f00138c8c56ab3df63e53c2b3b566b059aae44654f31fb58a6d59190d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53706f6d6b792d4c6162732f6a6f73652d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Spomky-Labs/jose-bundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/a62afae38e3ebd0d87dbb283d416e155baf0ddcae04c190f6e447a23604d2187/68747470733a2f2f7472617669732d63692e6f72672f53706f6d6b792d4c6162732f6a6f73652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Spomky-Labs/jose-bundle)

[![HHVM Status](https://camo.githubusercontent.com/c2a5bb7c61f57f72bdbe90871ef0f9426c7026895cce62b8507f1d16b119eed2/687474703a2f2f6868766d2e683463632e64652f62616467652f53706f6d6b792d4c6162732f6a6f73652d62756e646c652e706e67)](http://hhvm.h4cc.de/package/Spomky-Labs/jose-bundle)[![PHP 7 ready](https://camo.githubusercontent.com/d8abaf00c057ba254eac32b6347bbc0b7dea2001bb0497ba986ccf217309ff6e/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f53706f6d6b792d4c6162732f6a6f73652d62756e646c652f62616467652e737667)](https://travis-ci.org/Spomky-Labs/jose-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/22c79600b06fa63eb6779674909b85d2aca90d03595196dd4cbecdd3e5f60a76/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35333938653463612d316134382d343138362d393431302d6634346633663835306130352f6269672e706e67)](https://insight.sensiolabs.com/projects/5398e4ca-1a48-4186-9410-f44f3f850a05)

[![Latest Stable Version](https://camo.githubusercontent.com/107d809271e5f91c7303f24b2b6315f691d6e98ae8023ddf0c4233bbf82194e2/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6a6f73652d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/jose-bundle)[![Total Downloads](https://camo.githubusercontent.com/9de7ded7cf250747d392b995f3ab7ca336a58651d9f2032109f451ced5e55fb4/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6a6f73652d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/Spomky-Labs/jose-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/fe6c156ae41e61880f759172c9409193a5536a4925ebae1065799f0f01a41609/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6a6f73652d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/jose-bundle)[![License](https://camo.githubusercontent.com/9dd084764a3ae5cf5d48f17fa1a7c0d580635c35236419337f0761f04418b39d/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6a6f73652d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/Spomky-Labs/jose-bundle)

This Symfony bundle provides services to create, load, verify or decrypt JWT. It uses [spomky-Labs/jose](https://github.com/Spomky-Labs/jose) to ease encryption/decryption and signature/verification of JWS and JWE.

The Release Process
===================

[](#the-release-process)

The release process [is described here](doc/Release.md).

Prerequisites
=============

[](#prerequisites)

This library needs at least:

- [![PHP 5.6+](https://camo.githubusercontent.com/dfd8cb81f5b1bff7d494e425671875fb8e7ec556d413c6d2f921d5d91a65c765/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362532422d6666363962342e737667)](https://camo.githubusercontent.com/dfd8cb81f5b1bff7d494e425671875fb8e7ec556d413c6d2f921d5d91a65c765/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362532422d6666363962342e737667)
- Symfony 2.7+ or Symfony 3.0+

Continuous Integration
======================

[](#continuous-integration)

It has been successfully tested using `PHP 5.6`, `PHP 7` and `HHVM`.

We also track bugs and code quality using [Scrutinizer-CI](https://scrutinizer-ci.com/g/Spomky-Labs/jose-bundle/) and [Sensio Insight](https://insight.sensiolabs.com/projects/5398e4ca-1a48-4186-9410-f44f3f850a05).

Coding Standards are verified by [StyleCI](https://styleci.io/repos/28856829).

Code coverage is not performed. We rely on tests performed on the library and we only have implemented `Behavior driven development` (BDD) to test this bundle.

Installation
============

[](#installation)

The preferred way to install this library is to rely on Composer:

```
composer require spomky-labs/jose-bundle
```

Then, add the bundle into your kernel:

```
