Download the PHP package survos/past-perfect-bundle without Composer
On this page you can find all versions of the php package survos/past-perfect-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download survos/past-perfect-bundle
More information about survos/past-perfect-bundle
Files in survos/past-perfect-bundle
Package past-perfect-bundle
Short Description Symfony bundle for harvesting PastPerfect Online collections
License MIT
Informations about the package past-perfect-bundle
SurvosPastPerfectBundle
Symfony bundle for harvesting PastPerfect Online collections.
Streams listing pages and detail pages into JSONL files with built-in resume support via survos/jsonl-bundle sidecars. Raw HTML pages are cached to disk so re-runs are fast.
Site discovery (finding all *.pastperfectonline.com tenants) is delegated to
survos/site-discovery-bundle.
Requirements: PHP 8.4+, Symfony 8.0+.
Uses Dom\HTMLDocument (PHP 8.4 native HTML5 API) — no external DOM library.
Installation
Register if not using Flex:
Optional — install survos/import-bundle for field profiling and CSV export:
Configuration
Typical workflow
Commands
pastperfect:discover-registry
Queries the Internet Archive CDX API for all *.pastperfectonline.com tenant hostnames
and writes a registry listing JSONL. Delegates to CdxDiscoveryService from
survos/site-discovery-bundle.
| Option | Default | Description |
|---|---|---|
--output |
var/pastperfect/registry-listing.jsonl |
Output path |
--force |
false | Re-discover even if file is already complete |
--limit |
0 | Stop after N sites (0 = unlimited). Use during development. |
Each record:
pastperfect:probe-registry
Reads the registry listing and dispatches one ProbeRegistrySiteMessage per site.
Each message validates the host is a live PPO site and writes the result to a probed
registry JSONL.
Configure Symfony Messenger to handle the messages asynchronously, or leave unrouted for synchronous handling:
| Argument | Default | Description |
|---|---|---|
listingFile |
var/pastperfect/registry-listing.jsonl |
Input listing JSONL |
| Option | Default | Description |
|---|---|---|
--output |
{dir}/registry-probed.jsonl |
Output path |
--force |
false | Re-probe all sites |
--limit |
0 | Stop after N sites |
pastperfect:harvest-listing
Fetches the AdvancedSearch listing pages, parses all record links, and writes a listing JSONL. Resumes automatically on re-run (sidecar tracks progress).
| Argument | Description |
|---|---|
baseUrl |
e.g. https://fauquierhistory.pastperfectonline.com |
| Option | Default | Description |
|---|---|---|
--output-dir |
var/pastperfect |
Output directory |
--force |
false | Re-harvest even if complete |
Output: {output-dir}/{site}/{site}-listing.jsonl
Each record:
pastperfect:harvest-details
Reads the listing JSONL, fetches each detail page (cached under {cache_dir}/{site}/detail/),
parses catalog fields, and writes a flat details JSONL. A .profile.json is written
automatically after every run.
| Argument | Description |
|---|---|
listingFile |
Path to listing JSONL from harvest-listing |
| Option | Default | Description |
|---|---|---|
--output-dir |
same dir as listing file | Output directory |
--force |
false | Re-fetch all, ignoring cache |
--profile-only |
false | Only (re-)profile the existing JSONL |
--limit |
0 | Stop after N records |
Output files:
{site}-details.jsonl— one flat record per item{site}-details.jsonl.profile.json— field profile
About rights and licensing
PastPerfect Online has no dedicated rights or license field in its catalog schema. The only rights signal is the footer copyright notice on each page, e.g.:
© Fauquier Historical Society 2021
This is captured as rights_notice in every detail record. It is a site-level
attribution, not item-level.
Government-operated PPO sites may publish under a permissive or CC license, but PPO
itself provides no mechanism to declare this. Rights decisions must be made at the
application level, using rights_notice plus out-of-band knowledge about the
institution.
Analysing harvested fields
Messenger messages
Two messages are available for async processing:
| Message | Dispatched by | Handler |
|---|---|---|
ProbeRegistrySiteMessage |
pastperfect:probe-registry |
ProbeRegistrySiteHandler |
ProbeItemMessage |
(dispatch manually) | ProbeItemHandler |
Route to any Symfony Messenger transport — Doctrine, AMQP, Redis, etc. Leave unrouted for synchronous in-process handling (useful for small sites or testing).
License
MIT
All versions of past-perfect-bundle with dependencies
ext-dom Version *
symfony/config Version ^8.1
symfony/dependency-injection Version ^8.1
symfony/http-kernel Version ^8.1
symfony/console Version ^8.1
symfony/http-client Version ^8.1
symfony/messenger Version ^8.1
survos/jsonl-bundle Version ^2.5
survos/site-discovery-bundle Version ^2.5