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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vudev/jsonwebtoken contains the following files

Loading the files please wait ....