Download the PHP package danielburger1337/openid-hash without Composer

On this page you can find all versions of the php package danielburger1337/openid-hash. 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 openid-hash

PHPCSFixer PHPStan PHPUnit Packagist Version Packagist Downloads

openid-hash

Create and/or verify OpenID Connect 1.0 ID Token hashes (at_hash, c_hash, s_hash).

This library is PSR-4 compatible and can be installed via PHP's dependency manager Composer.

This library requires a 64-bit version of PHP.


How To Use

The constructor takes two arguments. The first argument is the JWA algorithm the ID Token is signed with. This value can usally be found in the alg header parameter of the ID Token.

The second argument is only required when the ID Token is signed with the EdDSA algorithm. This argument must then contain the crv of the JWK that was used to sign the ID Token. This value can usually be found in the crv header parameter of the ID Token or in the jwks_uri document of the OP.


To verify a hash, you can use the verify*Hash methods:

To create a verification hash, you can use the create*Hash methods:


All versions of openid-hash with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
danielburger1337/sha3-shake Version ^1.0
spomky-labs/base64url Version ^2.0
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 danielburger1337/openid-hash contains the following files

Loading the files please wait ....