Download the PHP package fissible/attest without Composer

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

fissible/attest

Tamper-evident signed evidence chains for application events, with optional public anchoring via OpenTimestamps.

Status: Stable — v1.0+. The public API (types marked @api) follows semantic versioning; see STABILITY.md. Anchoring ships @experimental in 1.x.


What is this, in plain terms?

fissible/attest is a tamper-evident logbook for the important things your software does.

Most applications already log events — "invoice approved," "document published," "permission granted." But ordinary logs and database rows can be quietly edited or deleted afterward, and nobody can tell. If a row says a contract was approved at 3pm Tuesday, you're trusting that nobody changed it since.

attest removes that "just trust us." Every event you record is:

The result is a history you can hand to an auditor, a court, a customer, or your future self and prove it hasn't been tampered with.

Why is that valuable?

Picture a dispute months from now:

A customer insists they never approved a $50,000 contract. Your database has a row saying they did — but that row could have been inserted or edited at any time by anyone with database access, so on its own it proves nothing.

With attest, that approval was signed and chained the instant it happened. If anyone altered it, back-dated it, or slipped in a fake one, verification fails and points at the broken entry. If you also anchored it, you can show it existed before a specific Bitcoin block — so it couldn't have been fabricated after the fact.

Typical uses: audit trails, compliance evidence, security investigations, financial and approval workflows, and anywhere "prove this log wasn't edited" actually matters.

What this is not: this is not artifact/build provenance (Sigstore, SLSA). Those prove where a binary came from. attest proves what your application did, and when.

The 30-second example

Record something important when it happens:

Later — maybe months later — prove the whole history is intact and authentic:

If someone tampers with any stored entry, isVerified() returns false and $result->brokenAtSeq tells you exactly which entry broke.

That's the whole idea. Everything below is detail you can read when you need it.


Install

Requires PHP ^8.2 with the bundled sodium extension (used for Ed25519 signing).

Using Laravel? See fissible/attest-laravel for Eloquent storage, Artisan commands, queue-ready anchoring, and a JSONL importer.

Storage adapter contract tests

Packages that provide their own storage backends should run the same contract tests as core. The traits are shipped in src/Testing so adapters can depend on one canonical definition:

Anchoring adapters can likewise use Fissible\Attest\Testing\AnchorClaimStoreContractTests. Both shipped contract-test traits are stable @api test support.

How it works (a layer deeper)

fissible/attest always starts with local integrity, and lets you optionally add a public time anchor on top.

Local integrity (always on)

Each event becomes an envelope: it is Ed25519-signed, stored in canonical JSON form, and linked to the previous envelope by hash. That proves whether a local chain is internally consistent and signed by the keys you expect — no network and no third party required.

Public anchoring (optional)

Anchoring adds an external time and publication signal. Chain ranges are batched into RFC 6962-style Merkle roots, submitted to OpenTimestamps calendars, and later upgraded when a Bitcoin block-header attestation is available.

Anchoring is experimental in the 1.x line: the subsystem is usable and tested, but its PHP API may change in a minor release. It graduates to stable after live-network validation against real OpenTimestamps calendars and Bitcoin confirmations. See STABILITY.md.

Verification levels

Verification can require anything from a local-only receipt up to a full Bitcoin-confirmed attestation. The meaningful levels, weakest to strongest:

Level (AnchorOutcome) Meaning
local_only Signed and chained; no external time proof.
pending Submitted to a calendar; not yet confirmed.
upgraded_no_headers Calendar attestation present; block headers not checked.
remote_header_confirmed Confirmed via a remote explorer — the explorer is part of the trust path.
bitcoin_verified Confirmed against a Bitcoin block header you trust (e.g. your own node).

Full verifier example (anchored)

The complete shape, requiring a Bitcoin-confirmed anchor and a trusted Ed25519 key:

Use AnchorOutcome::REMOTE_HEADER_CONFIRMED with EsploraHeaderProvider when a remote explorer is acceptable. It is convenient, but weaker than a local Bitcoin Core node because the remote service is part of the trust path.

OpenTimestamps calendars receive nonced commitments rather than raw chain roots. That protects the committed content, but submission timing and IP metadata can still link activity.

Payload Types

Payloads passed to record() accept JSON-native scalars (string, int, bool, null), arrays, objects, plus opaque binary blobs via Fissible\Attest\Envelope\Binary. Example:

Binary blobs are stored in canonical form as {"$binary": "<base64>"} and round-trip stably. The $binary key is reserved — a payload that uses it directly is rejected, so your data can never be mistaken for the binary sentinel. Each blob is capped at 64KB raw; larger artifacts must be stored externally and referenced by URL and sha256 hash.

The total signed canonical envelope size is capped at 64KB; payloads approaching that size will be rejected at record() time.

CLI

bin/attest is a Symfony Console application. Install globally or invoke via Composer:

Commands

Command Description
verify Verify a single chain segment (integrity + signatures + anchor coverage).
bundle:export Export one or more chain segments into a portable .attest.zip bundle.
bundle:verify Verify every chain segment inside an exported bundle.
anchor Submit a chain range to an OpenTimestamps calendar and record the receipt.
upgrade Upgrade pending OTS receipts that now have a Bitcoin block-header attestation.

Exit codes

Code Outcome Notes
0 VERIFIED, or non-verification command success INTEGRITY_VERIFIED_UNTRUSTED with --allow-untrusted also exits 0
1 CLI / configuration / runtime error before a VerificationOutcome Bad options, missing files, invalid arguments
2 INTEGRITY_VERIFIED_UNTRUSTED --allow-untrusted downgrades to 0
3 ANCHOR_BELOW_MIN Anchor exists but is below --min-anchor threshold
4 INVALID_CHAIN / INVALID_SIGNATURE / INVALID_ANCHOR Also: bundle export failure, calendar unavailable
5 PROVIDER_DISAGREEMENT --allow-provider-disagreement downgrades to the strongest passing outcome

Examples

JSON output schema

All commands emit a stable JSON envelope on stdout when --json is passed. The four schema identifiers are pinned within the 1.x line; future additions will be additive (no removals or renames within the same schema identifier):

Bundles

Bundles are ZIP containers (extension .attest.zip) with the following layout:

Members are stored uncompressed for byte-accounting symmetry; the reader enforces per-member size caps, a total size cap, and a compression-ratio guard against bundles produced by other writers.

Trust model: keys claimed inside the bundle are NOT trusted by themselves. Operators must supply trusted public keys via --trusted-key <path> or --trusted-key-file <path> at verification time.

Stability & Versioning

From v1.0.0, fissible/attest follows semantic versioning. The supported public API is the set of types marked @api; anything marked @internal (or unmarked) is implementation detail and may change in any release. The on-disk and interchange formats — canonical envelope JSON, the {"$binary": …} sentinel, the fissible.attest.bundle/v1 bundle, and the attest.cli.*.v1 JSON schemas — are frozen within 1.x (additions are additive; removals or renames require a format-version bump). The CLI contract (commands, options, exit codes, --json schemas) is stable even though the PHP classes under src/Cli/ are internal.

Anchoring is experimental in 1.x. The OpenTimestamps/Bitcoin anchoring subsystem (src/Anchor, src/Headers, src/Merkle) is usable and tested, but its PHP API may change in a minor release; it graduates to stable after live-network validation.

See STABILITY.md for the full surface list and policy.

Documentation

The supported surface is the set of @api-annotated types in src/ — see STABILITY.md for the full list and the wire/format stability guarantees.

License

MIT


All versions of attest with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-sodium Version *
ext-zip Version *
ext-json Version *
paragonie/constant_time_encoding Version ^2.6 || ^3.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
symfony/console Version ^6.4 || ^7.0 || ^8.0
symfony/uid Version ^6.4 || ^7.0 || ^8.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 fissible/attest contains the following files

Loading the files please wait ...