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

|
12,755 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 README

Swagger-PHP v3.x Annotation extension.

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' or 'SWG'
"completions.type": {
    "type": "string",
    "default": "SWG",
    "description": "Swagger Version 2.x:SWG, 3.x: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" }
    }
}

1.0.0

Initial release.

1.1.1

fix indent

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