Document Lifecycle
Package docs status
Section titled “Package docs status”This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.
| Field | Value |
|---|---|
| Composer package | capell-app/document-lifecycle |
| Package slug | document-lifecycle |
| Product group | Capell Operations |
| Tier | premium |
| Bundle | operations |
| Runtime contexts | admin, console |
| Capell version | ^4.0 |
| Source repository | capell-app/packages |
| Source path | packages/document-lifecycle |
| Docs source | packages/document-lifecycle/docs |
| Manifest | capell.json |
Controlled document registration, publication history, and acceptance tracking for Capell.
At A Glance
Section titled “At A Glance”- 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
Why It Helps Your Capell Workflow
Section titled “Why It Helps Your Capell Workflow”- 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.
Best Used With
Section titled “Best Used With”What It Adds
Section titled “What It Adds”- 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_acceptancestable. - 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.
Admin Surface
Section titled “Admin Surface”- Resource:
DocumentResource. - Pages:
ListDocuments,EditDocument. - Relation managers:
PublicationsRelationManager,AcceptancesRelationManager.
Data And Persistence
Section titled “Data And Persistence”- Models:
Document,DocumentPublication,DocumentAcceptance. - Migrations:
document_lifecycle_documents,document_lifecycle_publications, andlegal_acceptancesextension. - Actions: register, publish, resolve latest publication, compute content hash, record acceptance.
Install And Setup
Section titled “Install And Setup”Install with:
composer require capell-app/document-lifecycleRun migrations through the host application package install flow.
Testing
Section titled “Testing”Run package tests from the repository root:
vendor/bin/pest packages/document-lifecycle/tests --configuration=phpunit.xml