PHPackages                             nigelgreenway/signa - 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. nigelgreenway/signa

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

nigelgreenway/signa
===================

A framework agnostic token generator

1.0.0(10y ago)03.0k1[1 issues](https://github.com/NigelGreenway/signa/issues)MITPHPPHP ^7.0

Since Apr 12Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

Signa
=====

[](#signa)

[![Latest Version on Packagist](https://camo.githubusercontent.com/90a9cf16d5744455d3d8efa2c6b89c1ae1c8e670eb150741f03f384ec291f481/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6967656c677265656e7761792f7369676e612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nigelgreenway/signa)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0bd63e62a17b7b9b6a33fd9b88884d76a55c02d985b9bec88ba18877cb006c62/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6967656c677265656e7761792f7369676e612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/nigelgreenway/signa)[![Total Downloads](https://camo.githubusercontent.com/a5f772bdfe1f02b7d954f24cab5e1e98028d7685e72e709d61fd9312e873416f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6967656c677265656e7761792f7369676e612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nigelgreenway/signa)

A framework agnostic token generator built for PHP 7. Uses scalar type hinting and return type hinting.

Will generate a secure token using `hash_hmac` with access to the value and the expiry date of that token for use within your storage. An insecure token can also be generated with access to just a value, useful for a CSRF token.

Install
-------

[](#install)

Via Composer

```
$ composer require nigelgreenway/signa
```

Usage
-----

[](#usage)

```
