Download the PHP package k2gl/slsa-provenance without Composer

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

k2gl/slsa-provenance

CI Latest Stable Version Total Downloads PHPStan Level License

Typed SLSA Provenance predicates for PHP, both the current v1 and the legacy v0.2 that most real-world bundles still carry. Built on in-toto attestations.

SLSA Provenance describes how an artifact was built — the build definition (inputs) and the run details (who built it, when, and what came out). This package models that predicate as typed value objects and plugs it straight into an in-toto Statement, ready to sign with k2gl/dsse.

Install

Requires PHP 8.1+. Pulls in k2gl/in-toto-attestation and k2gl/dsse.

Usage

Parsing back (after verifying the envelope's signatures):

SLSA Provenance v0.2

Most provenance found in real Sigstore bundles is the older v0.2 predicate (https://slsa.dev/provenance/v0.2), which has a different shape from v1. It lives under K2gl\Slsa\V02 with its own typed value objects:

Building one wraps it in an in-toto Statement v0.1 by default — the version real-world v0.2 provenance is paired with. The two versions are orthogonal, so the Statement version can be overridden:

Verification Summary (VSA)

Where provenance says how an artifact was built, a Verification Summary Attestation (https://slsa.dev/verification_summary/v1) records that a verifier checked it against a policy — which SLSA levels it reached and whether it passed. This is the attestation a verifier emits, carried by an in-toto Statement v1. The same predicate covers the Build track and the Source track approved in SLSA v1.2:

Parsing back (after verifying the envelope's signatures):

Predicate registry

Register the SLSA predicate types so in-toto's Statement::predicate() returns a typed object instead of a raw array:

License

MIT — see LICENSE. Independent, clean-room implementation of the SLSA Provenance specification.


All versions of slsa-provenance with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
k2gl/in-toto-attestation Version ^1.2
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/slsa-provenance contains the following files

Loading the files please wait ...