$ show artefactual/atom
AtoM (Access to Memory) is a mature, open-source web application for archival description and access, developed by Artefactual Systems. In production, it manages hierarchical archival descriptions (fonds, series, files, items), authority records, repositories, digital objects, and accessions. It supports multiple archival standards (EAD, EAC, MODS, METS, Dublin Core) and provides multilingual, multi-repository archival description. The application is built on PHP 7/8 with a Symfony 1.x core, Propel ORM for persistence, and Elasticsearch for search indexing, with MySQL/MariaDB as the primary datastore and Gearman for background job processing.
The LLM identified 4 files worth highlighting for reuse:
A base CSV validation framework that checks column counts, sample values, and duplicate detection. It is self-contained, parameterized, and can be extracted and applied to any CSV import pipeline with minimal modification. Demonstrates a clean validator pattern for data quality assurance.
A direct SQL modification/query helper that bypasses the Propel ORM for schema changes and bulk data updates. It encapsulates PDO operations in a reusable, low-coupling way, useful for any PHP project needing raw SQL access without ORM overhead. Demonstrates a pragmatic data-access pattern for legacy ORM constraints.
The Qubit::filterRedirectTarget method validates and sanitizes redirect URLs to prevent open-redirect vulnerabilities. It is a small, isolated, well-tested security utility that can be extracted into any PHP web application. Demonstrates a security-hardening pattern for a mature legacy codebase.
An IP-based access control filter that restricts access to specific network ranges. It follows a clean filter/middleware pattern, is decoupled from the rest of the application, and can be reused in any PHP request pipeline. Demonstrates a simple, effective security control for administrative endpoints.