PHPackages                             jsq/iron-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jsq/iron-php

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

jsq/iron-php
============

A PHP port of hueniverse/iron

0.4.0(10y ago)12.3k1Apache-2.0PHPPHP &gt;=7.0

Since Feb 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jeskew/iron-php)[ Packagist](https://packagist.org/packages/jsq/iron-php)[ RSS](/packages/jsq-iron-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (8)Used By (1)

`iron-php`
==========

[](#iron-php)

[![Build Status](https://camo.githubusercontent.com/266e066a5f6fbbc0a14e7aa4084fc22c7d9d08aa23b12aec1ec8b894a0f6e187/68747470733a2f2f7472617669732d63692e6f72672f6a65736b65772f69726f6e2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jeskew/iron-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2a98b250bc9546762301bfccc038f29ee947579d59d6e6714746e7eb8d7f0a70/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a65736b65772f69726f6e2d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jeskew/iron-php/?branch=master)[![Apache 2 License](https://camo.githubusercontent.com/464b896a44ff7b7f6ca229bab059a0f27792bc2f38844b311266dcbac77367f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a73712f69726f6e2d7068702e7376673f7374796c653d666c6174)](https://www.apache.org/licenses/LICENSE-2.0.html)[![Total Downloads](https://camo.githubusercontent.com/248e2be67c133f9aa864a12f2909d14a66e44dc1d9a5ff8a3054a79d7a983497/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a73712f69726f6e2d7068702e7376673f7374796c653d666c6174)](https://packagist.org/packages/jsq/iron-php)[![Author](https://camo.githubusercontent.com/297a2017c3c5d5b0f717bf17f2713cd12b5ba24945e861cf9af88e37d6bf50ce/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406a7265736b65772d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/jreskew)

`iron-php` is a PHP implementation of the [Iron](https://github.com/hueniverse/iron)library. Iron generates encapsulated tokens suitable for embedding in cookies, query parameters, and HTTP headers.

```
$ composer require jsq/iron-php
```

**Please consult the Iron \[security considerations\] () before using this library.**

Differences from Iron
---------------------

[](#differences-from-iron)

`iron-php` supports the token format generated by **Iron 4.0**, with the following exceptions:

- The payload encryption cipher method is configurable but cannot be set to any GCM or CTR variant of AES. This is due to a PHP limitation that will be addressed in PHP 7.1.
- Separate encryption and signature passwords are not supported.

Usage
-----

[](#usage)

```
