Skip to content

PHP autogen library

tuj edited this page Apr 20, 2020 · 5 revisions

Generate api specification

bin/console api:openapi:export --spec-version=2 -y -o public/openapi/openapi.yaml

Install swagger-codegen with homebrew

brew cask install homebrew/cask-versions/adoptopenjdk8
brew install swagger-codegen

Generate library from openapi specification.

swagger-codegen generate -i public/openapi/openapi.yaml -l php