Skip to main content

Overview

Articles are the primary legal content of each framework. Every article belongs to exactly one framework, identified by its slug. Use $client->articles to list, fetch, and navigate them.

Methods

list()

Returns a page of article summaries for the given framework.
Parameters Returns Page<ArticleSummary>

get()

Fetch the full content of a single article, including all paragraphs.
Parameters Returns Article
Fetch articles related to a given article.
Returns Page<ArticleSummary>

iter()

Iterate over all articles in a framework across all pages.
Returns \Generator<ArticleSummary>

Models

ArticleSummary

Returned by list(), related(), and iter().

Article

Returned by get(). Extends ArticleSummary with:

ArticleParagraph


Examples

Print every GDPR article

Fetch a specific article and display paragraphs

Collect all articles into an array for fast lookup

Use iter() when you need every article. Use list() when you only need one page or want to control pagination yourself.