Download the PHP package vudev/jsonwebtoken without Composer
On this page you can find all versions of the php package vudev/jsonwebtoken. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vudev/jsonwebtoken
More information about vudev/jsonwebtoken
Files in vudev/jsonwebtoken
Download vudev/jsonwebtoken
More information about vudev/jsonwebtoken
Files in vudev/jsonwebtoken
Vendor vudev
Package jsonwebtoken
Short Description This library is designed to generate JWT tokens.
License MIT
Package jsonwebtoken
Short Description This library is designed to generate JWT tokens.
License MIT
Please rate this library. Is it a good library?
Informations about the package jsonwebtoken
PHP Json Web Token
php >= 7.4
Install
Description
Syntax
Object options
Name | Type | Default | Required | Description |
---|---|---|---|---|
payload | array | [] | required | Useful data that is stored inside the JWT. This data is also called JWT-claims (applications) |
secret | string | '' | required | Secret key. This option is required when using hash_hmac |
header | array | ['alg' => 'HS256', 'typ'=> 'JWT'] | optional | Сontains information about how the JWT signature should be calculated |
private_key | string - a PEM formatted key | '' | required | OpenSSLAsymmetricKey - a key, returned by openssl_get_privatekey(). This option is required when using openssl |
Algorithms
Method | Algorithm | Constant |
---|---|---|
hash_hmac | SHA256 | HS256 |
hash_hmac | SHA384 | HS384 |
hash_hmac | SHA512 | HS512 |
openssl | SHA256 | RS256 |
openssl | SHA384 | RS384 |
openssl | SHA512 | RS512 |
Methods
Name | Arguments | Description |
---|---|---|
createToken | $options — as options of the JWT object | Creating access or refresh tokens |
verifyToken | $token — access token $key — secret or public key |
Checking tokens for validity |
json | $token — access token | Getting payload and header data |
Creating a pair tokens with hash_hmac
Creating a pair tokens with openssl
Verifying a token with hash_hmac
Verifying a token with openssl
Getting token data
All versions of jsonwebtoken with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package vudev/jsonwebtoken contains the following files
Loading the files please wait ....