PHPackages                             tc/jose - 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. tc/jose

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

tc/jose
=======

Javascript Object Signing and Encryption Library

v1.0.1(11y ago)3115MITPHPPHP &gt;=5.3.2

Since Oct 20Pushed 11y ago1 watchersCompare

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

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

Tc JOSE
=======

[](#tc-jose)

[![Build Status](https://camo.githubusercontent.com/cdd706c93772258fdc422afc301e24fc785d59f33981bd6b620250282713b42a/68747470733a2f2f7472617669732d63692e6f72672f6361726c63726169672f74632d6a6f73652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/carlcraig/tc-jose)[![SensioLabsInsight](https://camo.githubusercontent.com/b6d1e599bb61042a6b8e3e9bac4c611d677324225ddb4a52a812cf81a549f0c8/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31356234333335372d653234352d343865372d626639312d3633353136306361343162652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/15b43357-e245-48e7-bf91-635160ca41be)[![Latest Stable Version](https://camo.githubusercontent.com/490106c99843cbb6fa71840e6a9f79eef3400ff94122afd8ab0d9beb434bd3ee/68747470733a2f2f706f7365722e707567782e6f72672f74632f6a6f73652f762f737461626c652e737667)](https://packagist.org/packages/tc/jose)

##### A Javascript Object Signing and Encryption Library

[](#a-javascript-object-signing-and-encryption-library)

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

[](#installation)

Using composer, add the following to your `composer.json`:

```
"tc/jose": "dev-master"
```

You could also run:

```
$ php composer.phar require tc/jose "dev-master"
```

Supported Algorithms
--------------------

[](#supported-algorithms)

- None
- HS256, HS384, HS512
- RS256, RS384, RS512
- ES256, ES384, ES512

Creating a JWS
--------------

[](#creating-a-jws)

To create a JWS you would do something like this:

```
