Read from the package's own PHP files at the commit 0a0675b28fbd: its namespaces, classes, interfaces and enums, their public constants, properties and methods with their PHPDoc, and the options its factories take. Nothing of it is run.
NationalArchivesUkclassDiscovery, the catalogue of the UK's National Archives and of some 2,500 archives across the country: wills, service records, prisoner-of-war cards, settlement examinations, parish papers... described piece by piece, many of them by the name of the person they are about.
9 methods · 2 constants
Omnistate\NationalArchivesUk
NationalArchivesUk class
final class NationalArchivesUk implements CivilRegistryInterface NationalArchivesUk.php:33
Discovery, the catalogue of the UK's National Archives and of some 2,500 archives across the country: wills, service records, prisoner-of-war cards, settlement examinations, parish papers... described piece by piece, many of them by the name of the person they are about.
It is a catalogue of archives, NOT civil registration: births, marriages and deaths of England and Wales are held by the General Register Office, which has no public API. Every record is therefore of the kind OTHER: a document that names the person, with its reference and who holds it - not an act, no structured person, no picture. A question for births only is not one for it.
Free, no key. The API asks for moderation: one call a second, at most 3,000 a day per address.
const URL = 'https://discovery.nationalarchives.gov.uk/API'const PAGE = 'https://discovery.nationalarchives.gov.uk/details/r/'
NationalArchivesUk::__construct()
public function __construct(readonly HttpClientInterface $http, readonly float $timeout = 10, readonly string $url = self::URL)NationalArchivesUk::name()
public function name(): stringNationalArchivesUk::countries()
public function countries(): arrayNationalArchivesUk::kinds()
public function kinds(): arrayNationalArchivesUk::period()
public function period(): ?PeriodNationalArchivesUk::hasImages()
public function hasImages(): boolNationalArchivesUk::supports()
public function supports(CivilQuery $query): boolNationalArchivesUk::search()
public function search(CivilQuery $query): arrayNationalArchivesUk::find()
public function find(string $identifier): ?CivilRecord