OpenAPI Generator

OpenAPI Generator

  • Get Started
  • Generators
  • Roadmap
  • Team
  • FAQ
  • Blog

generators/php


id: generator-opts-client-php title: Config Options for php sidebar_label: php


OptionDescriptionValuesDefault
sortParamsByRequiredFlagSort method arguments to place required parameters before optional parameters.true
ensureUniqueParamsWhether to ensure parameter names are unique in an operation (rename parameters that are not).true
allowUnicodeIdentifiersboolean, toggles whether unicode identifiers are allowed in names or not, default is falsefalse
prependFormOrBodyParametersAdd form or body parameters to the beginning of the parameter list.false
modelPackagepackage for generated modelsnull
apiPackagepackage for generated api classesnull
variableNamingConventionnaming convention of variable name, e.g. camelCase.snake_case
invokerPackageThe main namespace to use for all classes. e.g. Yay\Petsnull
packageNameThe main package name for classes. e.g. GeneratedPetstorenull
srcBasePathThe directory to serve as source root.null
gitUserIdGit user ID, e.g. openapitools.null
gitRepoIdGit repo ID, e.g. openapi-generator.null
artifactVersionThe version to use in the composer package version field. e.g. 1.2.3null
composerVendorNameThe vendor name used in the composer package name. The template uses {{composerVendorName}}/{{composerProjectName}} for the composer package name. e.g. yaypets. IMPORTANT NOTE (2016/03): composerVendorName will be deprecated and replaced by gitUserId in the next openapi-generator releasenull
composerProjectNameThe project name used in the composer package name. The template uses {{composerVendorName}}/{{composerProjectName}} for the composer package name. e.g. petstore-client. IMPORTANT NOTE (2016/03): composerProjectName will be deprecated and replaced by gitRepoId in the next openapi-generator releasenull
hideGenerationTimestampboolean, toggles whether unicode identifiers are allowed in names or not, default is falsetrue
Last updated on 2019-1-18
OpenAPI Generator
Docs
Customizing GeneratorsWorkflow Integrations
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHub RepoStar
Facebook Open SourceFontawesome (Free)
Copyright © 2019 OpenAPI-Generator Contributors (https://openapi-generator.tech)