How sirrom2005/law works
LegalDocs is a web product for assembling jurisdiction-aware legal documents, selling them, and providing paid-document access. The main customer journey runs from catalog discovery through guided answers, preview, checkout, and PDF retrieval; execution guidance is included, but signing is physical rather than electronic. The graph also captures account/library and content-review capabilities evident in the tree and sampled pages. Several routes and integrations are unsampled, so uncertain wiring is omitted.
Main entry points: db.php Application Database · preview.php Document Preview · builder.php Guided Questionnaire · index.php Select Jurisdiction
Components 24
Discovery & Accounts
- Document Catalog
catalog.php - Document Details
document.php - Account & Login
account.php
Document Drafting
- Select Jurisdiction
legal-document-builder/index.php - Guided Questionnaire
legal-document-builder/builder.php - Question Data
apis/questions.php - Answer Session
legal-document-builder/track-answer.php - Country Data
apis/countries.php - Document Preview
preview.php - Template Data
apis/template.php - Signing Requirements
apis/signing_requirements.php - Save Draft API
apis/save-draft.php - Document Persistence
includes/document-save.php
Orders & Delivery
- Checkout
checkout.php - Payment Handling
includes/payment.php - Payment Provider
- Orders
orders.php - Document Library
library.php - PDF Generation
includes/pdf.php - PDF Download
document-pdf.php
Content Operations
- Template Management
admin/templates.php - Legal Review
admin/review.php
Other components
- Customer
- Application Database
apis/db.php
Connections 27
- Customer → Document Catalog: browse
- Document Catalog → Document Details: view details
- Customer → Select Jurisdiction: start drafting
- Select Jurisdiction → Country Data: loads countries
- Select Jurisdiction → Answer Session: records selection
- Guided Questionnaire → Question Data: loads questions
- Guided Questionnaire → Answer Session: records answers
- Guided Questionnaire → Save Draft API: saves draft
- Guided Questionnaire → Document Preview: opens preview
- Document Preview → Template Data: loads template
- Document Preview → Signing Requirements: loads requirements
- Document Preview → Save Draft API: saves preview
- Save Draft API → Document Persistence: persists document
- Document Persistence → Application Database: writes drafts and orders
- Document Preview → Checkout: continues to checkout
- Checkout → Payment Handling: initiates payment
- Payment Handling → Payment Provider: processes payment
- Payment Handling → Application Database: records payment
- Customer → Account & Login: manages account
- Customer → Orders: views orders
- Customer → Document Library: opens documents
- Document Library → Application Database: reads saved documents
- PDF Download → PDF Generation: generates PDF
- PDF Generation → Application Database: reads document data
- Customer → PDF Download: downloads document
- Template Management → Application Database: manages templates
- Legal Review → Application Database: reviews versions