Skip to navigation

PHP configuration

View as Markdown

Configure the PHP SDK in the generation block of its target in sdk-config.yml:

sdk-config.yml
targets:
- language: php
generation:
naming:
clientName: YourClientName
propertyAccess: public
generateClientInterfaces: true

The target’s generation block also accepts the shared generation options, such as naming, wireTests, and customCode. Shared options set in the top-level generation block apply to every target, and a target’s generation block overrides them. For generators.yml options, see the Legacy PHP configuration.

PHP options

<ParamField path=“propertyAccess” type=""public” | “private"" required= toc=> The visibility of generated PHP model properties. </ParamField>

generateClientInterfaces
boolean

Whether interfaces are generated for PHP client classes.