Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.law4devs.eu/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Recitals are the numbered preamble paragraphs of EU regulations that provide context and intent for the operative articles. Use $client->recitals to access them.

Methods

list()

Returns a page of recitals for the given framework.
$page = $client->recitals->list('gdpr', perPage: 10);

printf("GDPR has %d recitals\n", $page->meta->total);
foreach ($page->data as $recital) {
    printf("  Recital %s: %.80s...\n", $recital->recitalNumber, $recital->content);
}
Returns Page<Recital>

get()

Fetch a single recital by number.
$recital = $client->recitals->get('gdpr', 1);
echo $recital->content . "\n";
Returns Recital

iter()

Iterate over all recitals in a framework.
foreach ($client->recitals->iter('nis2') as $recital) {
    echo $recital->recitalNumber . ' — ' . substr($recital->content, 0, 80) . "\n";
}
Returns \Generator<Recital>

Model

Recital

FieldTypeDescription
idintInternal numeric ID
frameworkSlugstringParent framework slug
recitalNumberstringRecital number within the framework
contentstringFull recital text
positionintOrdering position in the framework