Download the PHP package k2gl/dsse without Composer

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

k2gl/dsse

CI Latest Stable Version Total Downloads PHPStan Level License

Sign and verify DSSE (Dead Simple Signing Envelope) payloads in PHP with pluggable keys. It's the envelope Sigstore, in-toto, SLSA and npm provenance use to wrap a signed payload.

It gives you the three pieces of the spec and nothing else:

Install

Requires PHP 8.1+. The bundled signers use ext-openssl (ECDSA P-256/384/521, RSA) and ext-sodium (Ed25519); both ship with PHP by default. The core (Pae, Envelope) needs neither.

Usage

PAE — what actually gets signed

Lengths are byte counts, so the encoding is unambiguous for any payload, including binary data.

Sign

Envelope::sign() accepts several signers to produce a multi-signature envelope.

Verify

The envelope is accepted if any signature verifies against any verifier you pass, mirroring the spec's verification model. Pass several verifiers to accept a set of trusted keys.

Ed25519

ECDSA P-384 / P-521 and RSA

The other bundled algorithms follow the same fromPem() pattern:

EcdsaP521Signer / EcdsaP521Verifier work identically.

Loading a key without knowing its algorithm

When a key arrives as a PEM file or a JWK from a JWKS endpoint, PublicKey picks the right verifier for you — RSA, ECDSA (P-256/384/521) or Ed25519 — so you don't have to branch on the algorithm yourself:

RSA keys carry no hash, so these verify with SHA-256; for another hash use RsaVerifier::fromPem($pem, hashAlgorithm: 'sha512') directly.

KeyId computes the two identifiers commonly used for a signature's keyId:

Plugging in your own key backend

Implement two methods to sign with a KMS/HSM or any other scheme:

Design

License

MIT — see LICENSE.

Based on the DSSE specification (Apache-2.0) by the Secure Systems Lab; this is an independent, clean-room PHP implementation.


All versions of dsse with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 k2gl/dsse contains the following files

Loading the files please wait ...