Skip to content

Document Lifecycle

This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.

FieldValue
Composer packagecapell-app/document-lifecycle
Package slugdocument-lifecycle
Product groupCapell Operations
Tierpremium
Bundleoperations
Runtime contextsadmin, console
Capell version^4.0
Source repositorycapell-app/packages
Source pathpackages/document-lifecycle
Docs sourcepackages/document-lifecycle/docs
Manifestcapell.json

Controlled document registration, publication history, and acceptance tracking for Capell.

  • Package: capell-app/document-lifecycle
  • Namespace: Capell\DocumentLifecycle\
  • Surfaces: Filament admin, database
  • Service providers: packages/document-lifecycle/src/Providers/DocumentLifecycleServiceProvider.php
  • Capell dependencies: capell-app/admin, capell-app/core, capell-app/publishing-studio
  • Adds controlled document registry, publication metadata, hashes, and acceptance evidence for compliance-heavy Capell sites.
  • Helps owners prove which document version was published or accepted without inventing a custom audit layer.
  • Fits publishing workflows where documents need clearer state and evidence than ordinary page content.
  • A Controlled documents admin resource.
  • Document registration and publication actions.
  • Publication records linked to Publishing Studio revisions.
  • Acceptance records stored in or extending the legal_acceptances table.
  • Protected table registration for document and acceptance audit data.

Use this package when a site needs evidence that a controlled document was published and accepted. It is not a general file manager; media and downloadable assets stay in the media packages.

  • Resource: DocumentResource.
  • Pages: ListDocuments, EditDocument.
  • Relation managers: PublicationsRelationManager, AcceptancesRelationManager.
  • Models: Document, DocumentPublication, DocumentAcceptance.
  • Migrations: document_lifecycle_documents, document_lifecycle_publications, and legal_acceptances extension.
  • Actions: register, publish, resolve latest publication, compute content hash, record acceptance.

Install with:

Terminal window
composer require capell-app/document-lifecycle

Run migrations through the host application package install flow.

Run package tests from the repository root:

Terminal window
vendor/bin/pest packages/document-lifecycle/tests --configuration=phpunit.xml