1

I am trying to figure out how can i generate the openAPI json or yaml file automatically in my php application. As of now, i saw little to none docs on it, so i pretty much in the dark on this issue. Is there some way/package/anything else im missing? Im using also laravel 4.2 Thanks.

1 Answer 1

2

I recommend this package: https://github.com/zircote/swagger-php It generates OpenAPI json from annotations found in your files. I recommend you to place these annotations in controllers, models and middlewares. Thus you benefit for good documentation in your API code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.