Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Swagger-PHP AnnotationNew to Visual Studio Code? Get it now.
Swagger-PHP Annotation

Swagger-PHP Annotation

qvtec3

|
14,315 installs
| (2) | Free
Swagger-PHP annotation completion and decorator
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

swagger-php-annotation

Version Installs Stars License

Swagger-PHP v3.x Annotation extension for VS Code.

Features

  • Completion snippet after /** above a Restful API function (ex. index, store, show, update, destroy)
  • Completion of OpenAPI httpMethod (ex. Get, Post, Put, Delete)
  • Completion of OpenAPI tags (ex. Parameter, Response, JsonContent, Schema, Items, Property, RequestBody)
  • Add indent when pressing enter
  • Decorator of swagger-php annotation

features

Requirements

This extension has no dependencies.

Extension Settings

  • completions.type: set OA (OpenAPI 3.x) or SWG (Swagger 2.x)
"completions.type": "OA"
  • decorator.regexes: set to decoration types
"(?:\\* )(@OA\\\\\\w+)": {
    "decorationType": {
        "light": { "color": "#cb85cc" },
        "dark": { "color": "#cb85cc" }
    }
},
"(?:\\* \\s+)(@OA\\\\\\w+)": {
    "decorationType": {
        "light": { "color": "#6c83bd" },
        "dark": { "color": "#6c83bd" }
    }
},
"(?:\\*\\s+)(\\w+)(?:=)": {
    "decorationType": {
        "light": { "color": "#998554" },
        "dark": { "color": "#998554" }
    }
}

See CHANGELOG for release history.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft