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
The search endpoint lets you query across all frameworks simultaneously. Results include articles, recitals, and requirements that match your query. Use$client->search->query() to search.
Methods
query()
Search across all frameworks (or a specific one).
| Parameter | Type | Default | Description |
|---|---|---|---|
$q | string | required | Search query |
$framework | string|null | null | Limit to one framework slug |
$resultType | string|null | null | Filter by type: 'article', 'recital', 'requirement' |
$page | int|null | null | Page number |
$perPage | int|null | null | Items per page |
Page<SearchResult>
Model
SearchResult
| Field | Type | Description |
|---|---|---|
type | string | 'article', 'recital', or 'requirement' |
frameworkSlug | string | Framework the result belongs to |
frameworkName | string | Human-readable framework name |
articleNumber | int|null | For article results |
recitalNumber | int|null | For recital results |
paragraphRef | string|null | Specific paragraph reference |
title | string|null | Result heading, if any |
requirementType | string|null | For requirement results |
matchContext | string | Snippet showing the match in context |
url | string | Direct API URL to the full resource |
