> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 1.29.1

**`(fix):`** 修复分页端点的线路测试。之前，线路测试调用分页 SDK 方法时没有迭代返回的 Pager，因此没有发出 HTTP 请求，WireMock 验证总是失败，提示"Expected 1 requests, found 0"。生成的测试现在迭代 Pager 以触发第一页请求。

## 1.29.0

**`(feat):`** 添加对为所有 SDK 客户端类生成接口的支持。当配置 `generateClientInterfaces: true` 时，每个客户端 `{ClientName}` 都会获得相应的 `{ClientName}Interface` 与公共方法签名。具体客户端声明 `implements {ClientName}Interface`。这启用了标准的 PHP 模拟和 DI 模式（`PHPUnit::createMock()`、Laravel/Symfony DI 容器），无需具体类依赖。

```yaml
generators:
  - name: fernapi/fern-php-sdk
    config:
      generateClientInterfaces: true
```

## 1.28.0

**`(feat):`** 添加对默认请求参数值的支持。

当在 `generators.yml` 中配置 `useDefaultRequestParameterValues: true` 时，SDK 将为 API 模式中定义了默认值的查询参数和请求头生成默认值。具有默认值的参数在构造函数中变为可选，在省略时回退到其默认值。

```yaml
generators:
  - name: fernapi/fern-php-sdk
    config:
      useDefaultRequestParameterValues: true
```