openapi-generator/docs/generators/php-slim4.md
Jim Schubert 644f720db8
[docs] Sorted doc outputs and clean up duplicated CliOptions (#5046)
* [config-help] Sort all outputs

* Remove old/stale generator docs (these have been renamed previously)

* Sort config doc outputs, making it easier to find relevant info

* Fixes cliOptions duplicates

Erlang client/proper improperly set the version option as packageName
(causing duplicate for packageName).

The java and swift option removals are because the options are added in
parent classes, resulting in duplication of the options.

* Add --github-nested-index for generating docs/generators/README.md

* 📝 Regenerate generator docs
2020-01-19 20:19:11 -05:00

3.6 KiB
Raw Blame History

title sidebar_label
Config Options for php-slim4 php-slim4
Option Description Values Default
allowUnicodeIdentifiers boolean, toggles whether unicode identifiers are allowed in names or not, default is false false
apiPackage package for generated api classes null
artifactVersion The version to use in the composer package version field. e.g. 1.2.3 null
ensureUniqueParams Whether to ensure parameter names are unique in an operation (rename parameters that are not). true
invokerPackage The main namespace to use for all classes. e.g. Yay\Pets null
modelPackage package for generated models null
packageName The main package name for classes. e.g. GeneratedPetstore null
prependFormOrBodyParameters Add form or body parameters to the beginning of the parameter list. false
psr7Implementation Slim 4 provides its own PSR-7 implementation so that it works out of the box. However, you are free to replace Slims default PSR-7 objects with a third-party implementation. Ref: https://www.slimframework.com/docs/v4/concepts/value-objects.html
slim-psr7
Slim PSR-7 Message implementation
nyholm-psr7
Nyholm PSR-7 Message implementation
guzzle-psr7
Guzzle PSR-7 Message implementation
zend-diactoros
Zend Diactoros PSR-7 Message implementation
slim-psr7
sortModelPropertiesByRequiredFlag Sort model properties to place required parameters before optional parameters. true
sortParamsByRequiredFlag Sort method arguments to place required parameters before optional parameters. true
srcBasePath The directory to serve as source root. null
variableNamingConvention naming convention of variable name, e.g. camelCase. camelCase

IMPORT MAPPING

Type/Alias Imports

INSTANTIATION TYPES

Type/Alias Instantiated By
array array
map map

LANGUAGE PRIMITIVES

  • DateTime
  • bool
  • boolean
  • byte
  • double
  • float
  • int
  • integer
  • mixed
  • number
  • object
  • string
  • void

RESERVED WORDS

  • __halt_compiler
  • _header_accept
  • _tempbody
  • abstract
  • and
  • array
  • as
  • break
  • callable
  • case
  • catch
  • class
  • clone
  • const
  • continue
  • declare
  • default
  • die
  • do
  • echo
  • else
  • elseif
  • empty
  • enddeclare
  • endfor
  • endforeach
  • endif
  • endswitch
  • endwhile
  • eval
  • exit
  • extends
  • final
  • for
  • foreach
  • formparams
  • function
  • global
  • goto
  • headerparams
  • httpbody
  • if
  • implements
  • include
  • include_once
  • instanceof
  • insteadof
  • interface
  • isset
  • list
  • namespace
  • new
  • or
  • print
  • private
  • protected
  • public
  • queryparams
  • require
  • require_once
  • resourcepath
  • return
  • static
  • switch
  • throw
  • trait
  • try
  • unset
  • use
  • var
  • while
  • xor