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

Annexes are supplementary parts of EU regulations that appear after the main articles. They often contain technical requirements, lists, or tables referenced in the body. Use $client->annexes to access them.

Methods

list()

Returns a page of annex summaries for a framework.
$page = $client->annexes->list('cra');

foreach ($page->data as $annex) {
    printf("  Annex %s: %s\n", $annex->annexNumber, $annex->title);
}
Returns Page<AnnexSummary>

get()

Fetch the full content of a single annex.
$annex = $client->annexes->get('cra', 1);
echo $annex->title . "\n";
echo $annex->content . "\n";
Returns Annex

iter()

Iterate over all annex summaries in a framework.
foreach ($client->annexes->iter('cra') as $annex) {
    echo $annex->annexNumber . ': ' . $annex->title . "\n";
}
Returns \Generator<AnnexSummary>

Models

AnnexSummary

FieldTypeDescription
idintInternal numeric ID
frameworkSlugstringParent framework slug
annexNumberstringAnnex identifier, e.g. 'I', 'II'
titlestringAnnex heading

Annex

Returned by get(). Extends AnnexSummary with:
FieldTypeDescription
contentstringFull text content of the annex