Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use codegen in swagger to create server side code in php

Tags:

rest

php

swagger

I am creating API documentations for my APIs. while creating am stuck in a problem that : I want to generate server side code for my API by which user can easily implement that code. I read about "codegen" by swagger by which one can generate code in different languages. So any please suggest me how to use that feature to generate code in different language (java,php...). or any alternative for this. also Guide me if i am wrong at any point of view. Thanks in advance.

like image 429
Abhishek Goswami Avatar asked Feb 12 '26 23:02

Abhishek Goswami


1 Answers

Given that you've the API documented in OpenAPI/Swagger spec, you can use Swagger Codegen to generate PHP server stub (Slim, Silex, Lumne) very easily.

Please refer to the wiki for more information.

like image 66
William Cheng Avatar answered Feb 16 '26 18:02

William Cheng



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!