Overview
Frameworks represent EU regulations such as GDPR, CRA, NIS2, and the AI Act. Use$client->frameworks to list and fetch them.
Methods
list()
Returns a page of all available frameworks.
Page<FrameworkSummary>
get()
Fetch a single framework by slug, including detailed counts.
| Parameter | Type | Description |
|---|---|---|
$slug | string | Framework slug, e.g. 'gdpr' |
Framework
iter()
Iterate over all frameworks across all pages.
\Generator<FrameworkSummary>
Models
FrameworkSummary
Returned by list() and iter().
| Field | Type | Description |
|---|---|---|
id | int | Internal numeric ID |
slug | string | URL-safe identifier, e.g. 'cra' |
name | string | Full framework name |
shortName | string | Short name, e.g. 'CRA' |
celexNumber | string | EUR-Lex CELEX identifier |
description | string|null | Brief description |
isActive | bool | Whether data is actively maintained |
status | string | 'active', 'draft', or 'superseded' |
articleCount | int | Number of synced articles |
recitalCount | int | Number of synced recitals |
createdAt | string | ISO 8601 creation timestamp |
Framework
Returned by get(). Extends FrameworkSummary with:
| Field | Type | Description |
|---|---|---|
eurLexUrl | string | Link to the official EUR-Lex page |
requirementCount | int | Number of extracted requirements |
annexCount | int | Number of annexes |
tagCount | int | Number of associated tags |
coverage | array|null | Coverage statistics |
