Skip to navigation

0.7.0

(feat): The SDK now supports inline path parameters in the generated request class like so:

class GetUserRequest extends JsonSerializableType {
/**
* @var string $userId
*/
public string $userId;
} ```
You can configure this in your `generators.yml` like so:
```yaml - name: fernapi/fern-php-sdk
version: 0.7.0
config:
inlinePathParameters: true

0.6.0

(feat): You can now configure the generated class property access to be public or private.

  • When the access is public, both the getter and setter methods are omitted (default).
  • When the access is private, both the getter and setter methods are generated.

You can configure this in your generators.yml like so:

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

0.5.2

(fix): Update the endpoint generator to not require the in-lined request wrapper if it’s only composed of optional properties.

(fix): Update optional query parameters lists to be generated as an optional array instead of an array of optional values.