Aller au contenu

omnistate/matchid Référence de l’API

Étage
Fournisseur · Omnistate
Version
1.x
Suite de conformité
branchée, CI non lue
Vérifié en réel
Son README ne le dit pas
Licence
MIT
composer require omnistate/matchid:1.x-dev

Lue dans les fichiers PHP du paquet au commit 754bc4c286cf : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.

Omnistate\MatchId

  • MatchId class

    France's deaths since 1970: INSEE's file of deceased persons, searched through matchID (deces.matchid.io, run by the French Ministry of the Interior). One record per death: the names, the sex, the date and place of birth, the date and place of death, the act's number. No picture of the act: the file is an index, the act itself is at the town hall.

    9 methods · 2 constants

Omnistate\MatchId

MatchId class

final class MatchId implements CivilRegistryInterface MatchId.php:32

France's deaths since 1970: INSEE's file of deceased persons, searched through matchID (deces.matchid.io, run by the French Ministry of the Interior). One record per death: the names, the sex, the date and place of birth, the date and place of death, the act's number. No picture of the act: the file is an index, the act itself is at the town hall.

Free, no key. A token (an account at deces.matchid.io) raises the quota; it is sent as "Authorization: Bearer".

const URL = 'https://deces.matchid.io/deces/api/v1'
const PAGE = 'https://deces.matchid.io/id/'

A record's page on matchID's own site.

MatchId::__construct()

public function __construct(readonly HttpClientInterface $http, readonly ?string $token = null, readonly float $timeout = 10, readonly string $url = self::URL)

MatchId::name()

public function name(): string

MatchId::countries()

public function countries(): array

MatchId::kinds()

public function kinds(): array

MatchId::period()

public function period(): ?Period

MatchId::hasImages()

public function hasImages(): bool

MatchId::supports()

public function supports(CivilQuery $query): bool

A name at least: the file is not browsed by date alone here. Deaths before 1970 are not in it.

public function search(CivilQuery $query): array

MatchId::find()

public function find(string $identifier): ?CivilRecord