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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:


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

PHP Build Version
Package Version
Requires php Version ^8.5
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package survos/past-perfect-bundle contains the following files

Loading the files please wait ...