A php swagger annotation and parsing library (by zircote)

Swagger-php Alternatives

Similar projects and alternatives to swagger-php

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better swagger-php alternative or higher similarity.

Suggest an alternative to swagger-php

Reviews and mentions

Posts with mentions or reviews of swagger-php. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-07-31.
  • Need to create OpenAPI documentation with Zend Framework 2
    1 project | reddit.com/r/OpenAPI | 25 Nov 2021
    I need to create REST API documentation for a legacy Zend Framework 2 project. I tried to use zircote/swagger-php . It works with the new zf2 skeleton project but it fails when I use it in the legacy zf2 project. It adds Symfony/polyfill-php80 and it generates to issue. Anybody could help me on this issue. If you can suggest another package for API documentation also be a great help. Thanks.
  • Dynamic class property with phpdoc included
    3 projects | reddit.com/r/PHPhelp | 31 Jul 2021
    It is possible that there is a library doing this already. I am not PHP coder so would like to avoid complex frameworks and stick with barebone solution doing only this Swagger/JSON stuff. For swagger, I decided to go with zircote/swagger-php. I would like my schema and model classes to have nice Swagger doc and at the same time I can use them to prepare objects to interact with the DB by loading/dumping from JSON.
  • Creating API documentation from php files?
    4 projects | reddit.com/r/PHP | 3 Feb 2021
    Ah right, so you're building a (presumably REST) API and you want to generate docs for the endpoints from your code. Slightly different scenario to what I assumed. There are a couple of libraries to generate OpenAPI specs from source files, I think this is the main one https://github.com/zircote/swagger-php though FWIW I prefer to maintain my API specs separately from the code and use those to guide what I'm building, rather than 'tother way round.
    4 projects | reddit.com/r/PHP | 3 Feb 2021
    I'm using this library to generate an open api 3 (swagger) yaml file. You add @OA markup to your doc blocks and then can have this generate a file or produce it on the fly. It's a bit sparse on documentation but is working really well with my MVC set up for a REST API I'm developing. https://github.com/zircote/swagger-php
  • Json schema out of an entity or DTO
    1 project | reddit.com/r/symfony | 12 Jan 2021
    I like the swagger way of generating schema's by annotating classes.. Swagger/OpenApi 3.0 uses a slightly modified subset of json schema, would that be of use to you?


Basic swagger-php repo stats
7 days ago

zircote/swagger-php is an open source project licensed under Apache License 2.0 which is an OSI approved license.

Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
Find remote jobs at our new job board 99remotejobs.com. There are 30 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.