2017 © Pedro Peláez
 

library php-jwt

Json Web Token for PHP

image

nixilla/php-jwt

Json Web Token for PHP

  • Tuesday, May 21, 2013
  • by nixilla
  • Repository
  • 2 Watchers
  • 8 Stars
  • 64,983 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 633 Forks
  • 1 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

JWT Implementation in PHP

Travis, (*1)


Installation

{
    "require": {
        "nixilla/php-jwt": "dev-master"
    }
}

PHP-JWT

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec, (*2)

Example

 "http://example.org",
    "aud" => "http://example.com",
    "iat" => 1356999524,
    "nbf" => 1357000000
);

$jwt = JWT::encode($token, $key);
$decoded = JWT::decode($jwt, $key);

print_r($decoded);
?>

Tests

Run the tests using phpunit:, (*3)

git clone https://github.com/jwmickey/php-jwt.git && \
cd php-jwt && \
mkdir bin && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin && \
./bin/composer.phar install --dev && \
./bin/phpunit

License

3-Clause BSD., (*4)

The Versions

21/05 2013

dev-master

9999999-dev

Json Web Token for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2

 

The Development Requires

by Neuman Vong
by Anant Narayanan
by Jody Mickey

jwt

21/05 2013

v0.1.1

0.1.1.0

Json Web Token for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2

 

The Development Requires

by Neuman Vong
by Anant Narayanan
by Jody Mickey

jwt

21/05 2013

v0.1.0

0.1.0.0

Json Web Token for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.2

 

The Development Requires

by Jody Mickey

jwt