{"schemaVersion":1,"title":"PHP · phpDocumentor","url":"https://appgram.github.io/docsy/versions/current/fr/php-sdk","markdownUrl":"https://appgram.github.io/docsy/format-md/versions/current/fr/php-sdk","jsonUrl":"https://appgram.github.io/docsy/agent/pages/versions/current/fr/php-sdk.json","version":"current","locale":"fr","markdown":"# PHP · phpDocumentor\n\nReal phpDocumentor XML output from the checked-in php fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.\n\n> Source: https://appgram.github.io/docsy/versions/current/fr/php-sdk  \n> Language: php  \n> Symbols: 5 across 3 categories\n\n## Categories\n\n- [Classes](#classes) — 1 items\n- [Methods](#methods) — 3 items\n- [Properties](#properties) — 1 items\n\n## Classes\n\n### `\\Example\\Greeter`  <sub>class</sub>\n\nBuild personalized greetings without network access.\n\n**Properties**\n\n| Name | Type | Required | Description | Default |\n\n| --- | --- | --- | --- | --- |\n\n| `prefix` | `mixed` | ✓ | Greeting prefix used for future calls. | `&#039;Hello&#039;` |\n\n**Methods**\n\n- `\\Example\\Greeter::greet()` → `string`  \n  Greet a reader.\n\n  - `name: string` — Reader name.\n\n- `\\Example\\Greeter::greetMany()` → `string`  \n  Greet several readers while preserving input order.\n\n  - `names: string[]` — Reader names.\n\n  - `separator: string` (optional) — Separator between greetings.\n\n- `\\Example\\Greeter::greetChecked()` → `string`  \n  Reject an empty reader name.\n\n  - `name: string` — Reader name.\n\n```php\nclass Greeter\n```\n\n**Example**\n\n```php\n$greeter = new Greeter(); echo $greeter->greet('Docsy');\n```\n\n## Methods\n\n### `\\Example\\Greeter::greet()`  <sub>method</sub>\n\nGreet a reader.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `string` | ✓ | Reader name. |\n\n**Returns** — `string` — A friendly greeting.\n\n```php\nfunction greet(string $name)\n```\n\n**Example**\n\n```php\necho (new Greeter())->greet('Ada');\n```\n\n---\n\n### `\\Example\\Greeter::greetChecked()`  <sub>method</sub>\n\nReject an empty reader name.\n\n**Errors**\n\n- `\\InvalidArgumentException` — When name is empty.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `string` | ✓ | Reader name. |\n\n**Returns** — `string` — A validated greeting.\n\n```php\nfunction greetChecked(string $name)\n```\n\n---\n\n### `\\Example\\Greeter::greetMany()`  <sub>method</sub>\n\nGreet several readers while preserving input order.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `names` | `string[]` | ✓ | Reader names. |\n\n| `separator` | `string` |  | Separator between greetings. |\n\n**Returns** — `string` — Joined greetings.\n\n```php\nfunction greetMany(string[] $names, string $separator)\n```\n\n**Example**\n\n```php\necho (new Greeter())->greetMany(['Ada', 'Linus']);\n```\n\n## Properties\n\n### `\\Example\\Greeter::$prefix`  <sub>property</sub>\n\nGreeting prefix used for future calls.\n\n```php\nproperty prefix\n```\n"}