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

## 0.7.0

**`(feat):`** SDK 现在支持在生成的请求类中内联路径参数，如下所示：

**`class GetUserRequest extends JsonSerializableType {`**

````php class GetUserRequest extends JsonSerializableType {
    /**
    * @var string $userId
    */
    public string $userId;
} ```
您可以在 `generators.yml` 中这样配置：
```yaml - name: fernapi/fern-php-sdk
  version: 0.7.0
  config:
    inlinePathParameters: true
````

## 0.6.0

**`(feat):`** 现在您可以将生成的类属性访问配置为 `public` 或 `private`。

* 当访问权限为 public 时，getter 和 setter 方法都被省略（默认）。
* 当访问权限为 private 时，会生成 getter 和 setter 方法。

您可以在 `generators.yml` 中这样配置：

**`- name: fernapi/fern-php-sdk`**

```yaml - name: fernapi/fern-php-sdk
  version: 0.6.0
  config:
    propertyAccess: private
```

## 0.5.2

**`(fix):`** 更新端点生成器，如果内联请求包装器仅由可选属性组成，则不需要它。

**`(fix):`** 更新可选查询参数列表，生成为可选数组而不是可选值的数组。