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

Tags are a structured taxonomy used to categorize articles, recitals, and requirements. Use $client->tags to browse all available tags.

Methods

list()

Returns a page of tags, optionally filtered by framework.
// All tags
$page = $client->tags->list();

// Tags relevant to CRA
$page = $client->tags->list(frameworkSlug: 'cra');

foreach ($page->data as $tag) {
    printf("  %-20s %s\n", $tag->slug, $tag->name);
}
Returns Page<Tag>

get()

Fetch a single tag by slug.
$tag = $client->tags->get('data-breach');
echo $tag->name . ': ' . $tag->description . "\n";
Returns Tag

iter()

Iterate over all tags.
foreach ($client->tags->iter() as $tag) {
    echo $tag->slug . "\n";
}
Returns \Generator<Tag>

Model

Tag

FieldTypeDescription
idintInternal numeric ID
slugstringURL-safe identifier
namestringDisplay name
descriptionstring|nullWhat this tag means
keywordsstring[]Related search keywords
colorstringHex color for display
createdAtstringISO 8601 creation timestamp