# Badge

> Renders the shared badge chip carrying a semantic tone.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Helper](/docs/extensions/debug-core/reference/helper/index.md) › Badge

| final class | `PHPForge\Debug\Helper\Badge` |
| --- | --- |
| Source | [`src/Helper/Badge.php`](https://github.com/php-forge/debug-core/blob/main/src/Helper/Badge.php#L14) |

Renders the shared badge chip carrying a semantic tone.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`render()`](#method-render) static | Renders one badge chip. | `Badge` |

## Method details

### render() <span id="method-render"></span>

```php
public static function render(string $label, PHPForge\Debug\Tone $tone, string $modifier = ''): UIAwesome\Html\Phrasing\Span
```

Renders one badge chip.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$label` | `string` | Text shown inside the chip. |
| `$tone` | `PHPForge\Debug\Tone` | Semantic tone selecting the chip hue. |
| `$modifier` | `string` | Extra CSS classes appended after the tone class, or `''` to add none. |

**Returns**

[`UIAwesome\Html\Phrasing\Span`](/docs/extensions/html/reference/phrasing/span/index.md): Badge chip element.