Download the PHP package koh/content-provenance without Composer

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

Content Provenance — TYPO3 Extension

TYPO3 14 PHP 8.3+ License: GPL-2.0-or-later

Content integrity and provenance tracking for TYPO3 using Ed25519 digital signatures. Provides an audit trail and a verification API — built with EU AI Act compliance in mind.

Features

Content Signing (Ed25519)

AI Asset Provenance (EU AI Act Art. 50, since v0.6.0)

Other

Installation

Requirements

Container binaries (for AI provenance — optional)

Auto-detection and XMP write-back need these in the httpd container:

Without the binaries the extension keeps working; only the auto-detection and IPTC write-back steps become no-ops (with a log warning).

Architecture

API Endpoints

Endpoint Purpose
/_provenance/api/verify Verify content signatures
/.well-known/provenance-keys Public key discovery
/_provenance/api/asset?file=<uid> Reads the C2PA manifest and IPTC tags out of a media file (anonymous, CORS *)

The asset endpoint spawns c2patool and exiftool on every cache miss, so it is bounded:

Answers are cached for 24 hours against the file's size, modification time and SHA-1.

Database Tables

Table Purpose
tx_provenance_signature Content signatures (Ed25519)
tx_provenance_audit_log Audit trail entries (signed tables only, field names only, pruned by provenance:prune-audit)

Extended TCA Columns (AI Provenance, v0.6.0+)

Table Column Purpose
sys_file_metadata tx_provenance_origin AssetOrigin enum (human/ai_generated/ai_assisted)
sys_file_metadata tx_provenance_ai_system Free-text model name (e.g. "DALL-E 3")
sys_file_metadata tx_provenance_ai_prompt Optional prompt for audit/reproducibility
sys_file_metadata tx_provenance_detected_at Auto-detection timestamp
sys_file_metadata tx_provenance_c2pa_status none / signed_own / signed_external / stripped
sys_file_reference tx_provenance_origin Per-reference override (rarely needed)
pages tx_provenance_origin Page-body origin (RTE / generated articles)
pages tx_provenance_ai_system Model name for the page body

Signing key

There is one signing key per installation, and it is derived from the TYPO3 encryptionKey ($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']) by Typo3KeyProvider, the only key provider (Configuration/Services.yaml aliases KeyProviderInterface to it):

What follows from this, by design:

A key that lives on its own (a file provider on a mount the application owns, with an archive of retired keys that stays published) is a possible later feature, not part of this release.

Configuration

The signed tables and fields are configured on SignedFieldsResolver in Configuration/Services.yaml. The signing key has no configuration; see Signing key. The site set's signing, verification and wellKnown settings are not read by any class at present.

Development

Dependencies

Package Type Purpose
ext-sodium Required Ed25519 cryptographic operations
symfony/process Required c2patool/exiftool subprocess wrappers (AI Provenance)
koh/dev Dev Shared QA tooling

C2PA Manifest Signing (Enterprise Provenance Layer, since v0.7.0)

Positioning: this layer is not a regulatory requirement of EU AI Act Art. 50 — the machine-readable disclosure (IPTC XMP + Schema.org) plus the visible frontend badge from phases 1–4 already cover the regulatory core. C2PA signing is the enterprise authenticity layer: provability, anti-stripping, chain of custody, forensics, interoperability.

Since v0.7.0 the package contains a cryptographic C2PA signing pipeline:

c2pa_status state model

Value Meaning
none Default — no signing attempt yet
signed_external Upstream signature detected (OpenAI, Adobe), not yet signed by us
signed_self_anchored Freshly signed by us (Step CA), no parent manifest
signed_self_anchored_append Edit action appended to an upstream manifest (parent source preserved)
signed_trusted Reserved for phase 5b — certificate from a CA on the trust list
stripped Was signed, the manifest was removed afterwards (e.g. by a re-encode outside TYPO3)
failed The signing attempt failed (certificate missing, c2patool exit ≠ 0, etc.)

Trust model (important!)

The signing pipeline establishes a private provenance chain:

External validators (e.g. contentcredentials.org/verify) show our signature as "untrusted (unknown CA)" — the signature is cryptographically valid and tamper-evident, but our root is not on the C2PA Trust List. That is intended for phase 1: internal provability and forensics without an external onboarding programme.

Roadmap (public trusted Content Credentials)

When real external industry trust is required:

  1. Go through the C2PA Conformance Program for our generator product (CAI Conformance)
  2. Obtain a signing certificate from a trust-list CA — the Step CA stays internal, external signing calls use the trust-list CA
  3. Add trusted timestamping (TSA) — otherwise it cannot be proven that the signature was created while the certificate was valid
  4. Key isolation — move the private key out of the httpd container into an HSM/KMS/PKCS#11 or an isolated signing worker (sidecar pattern)
  5. Async queue/worker instead of a synchronous backend save — better mass-upload UX and failure isolation
  6. Validator CI gates — c2patool verify plus a contentcredentials.org round trip as a quality gate

These points are out of scope for the initial implementation and require external programmes or service providers.

EU AI Act Art. 50 Compliance

The regulatory minimum for Art. 50 (applicable from August 2026) is "marked in a machine-readable format AND detectable as artificially generated". It is covered by phases 1–4 of this package plus the site packages:

Requirement Covered by
Machine-readable IPTC Photo Metadata 2025.1 XMP (DigitalSourceType, AISystemUsed) — phase 3
Detectable Auto-detection from C2PA/IPTC on upload — phase 2
Visible to users Frontend badge via moselwal/sitepackage-base ≥ 3.22.0 — phase 4
Structured for crawlers Schema.org ImageObject.creator via koh/structured-content ≥ 1.5.10 — phase 4

As things stand, Art. 50 does not require cryptographic provenance, a PKI, a trust-list CA, watermarks or a blockchain. The C2PA signing layer (phase 5) is a strategic addition for provability, forensics and enterprise authenticity use cases, not a mandatory regulatory layer.

Google AI Search conformance (May 2026)

Google's official guides confirm the approach of this stack:

→ Google's only hard technical requirement (IPTC DigitalSourceType) is covered by phase 3 (IptcXmpWriter). The Schema.org extensions (phase 4) remain useful for classic SERP features but are not required for generative AI search. C2PA signing (phase 5) is currently not evaluated by Google for search ranking — it remains strategic as an enterprise authenticity layer.

E-commerce edge case (not relevant to sites built on this package so far): "AI-generated product data such as title and description attributes must be specified separately and labeled as AI-generated" — future product pages would need separate AI labelling fields in the product content block.

Note: this documentation is not legal advice. For a formal Art. 50 assessment we recommend your own risk analysis and a disclosure concept that names the layers implemented in the project and documents the strip-detection strategy (c2pa_status=stripped).

License

GPL-2.0-or-later — see the SPDX licence text.


All versions of content-provenance with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-sodium Version *
symfony/process Version ^6 || ^7
typo3/cms-backend Version ^14.0
typo3/cms-core Version ^14.0
typo3/cms-extbase Version ^14.0
typo3/cms-fluid Version ^14.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 koh/content-provenance contains the following files

Loading the files please wait ...