2017 © Pedro Peláez
 

library jwt

JWT token handling

image

vakata/jwt

JWT token handling

  • Friday, February 24, 2017
  • by vakata
  • Repository
  • 1 Watchers
  • 0 Stars
  • 753 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

JWT

Latest Version on Packagist ![Software License][ico-license] Build Status Code Climate ![Tests Coverage][ico-cc-coverage], (*1)

JWT token handling., (*2)

Install

Via Composer, (*3)

``` bash $ composer require vakata/jwt, (*4)


## Usage ``` php $token = new \vakata\jwt\JWT(); $token ->setClaim("key", "value") ->setExpiration("+30 days") ->setIssuer("System") ->sign("secretKey"); $stringified = (string)$token; $parsed = \vakata\jwt\JWT::fromString($stringified); var_dump($parsed->isValid()); // true var_dump($parsed->isSigned()); // true var_dump($parsed->verifyHash("secretKey")); // true var_dump($parsed->getClaim("key")); // "value"

Read more in the API docs, (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Security

If you discover any security related issues, please email github@vakata.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

24/02 2017

dev-master

9999999-dev https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

24/02 2017

3.0.3

3.0.3.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

28/10 2016

3.0.2

3.0.2.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

27/10 2016

3.0.1

3.0.1.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

13/08 2016

3.0.0

3.0.0.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

12/08 2016

1.1.0

1.1.0.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

12/03 2016

1.0.1

1.0.1.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

07/03 2016

1.0.0

1.0.0.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata

07/03 2016

2.0.0

2.0.0.0 https://github.com/vakata/jwt

JWT token handling

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

jwt vakata