Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Swagger Php Laravel Package

zircote/swagger-php

swagger-php generates OpenAPI 3.0/3.1/3.2 documentation from your PHP 8.2+ code using attributes (preferred) or optional Doctrine annotations. Use it via CLI or programmatically, with helpful error reporting and a full documentation site.

View on GitHub
Deep Wiki
Context7

Annotation Reference

This page is generated automatically from the swagger-php sources.

For improvements head over to GitHub and create a PR ;)

In addition to this page, there are also a number of examples which might help you out.

Annotations

AdditionalProperties

Allowed in


Schema, Property, Items, JsonContent, XmlContent, AdditionalProperties

Nested elements


Discriminator, Items, Property, ExternalDocumentation, Xml, AdditionalProperties, Attachable

Attachable

A container for custom data to be attached to an annotation.

These will be ignored by swagger-php but can be used for custom processing.

Allowed in


AdditionalProperties, Components, Contact, Delete, Discriminator, Encoding, Examples, ExternalDocumentation, Flow, Get, Head, Header, Info, Items, JsonContent, License, Link, MediaType, OpenApi, Operation, Options, Parameter, Patch, PathItem, PathParameter, Post, Property, Put, RequestBody, Response, Schema, SecurityScheme, Server, ServerVariable, Tag, Trace, Webhook, Xml, XmlContent

Components

Holds a set of reusable objects for different aspects of the OA.

All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object.

Allowed in


OpenApi

Nested elements


Response, Parameter, PathParameter, RequestBody, Examples, Header, SecurityScheme, Link, Schema, Attachable

Properties


Reference


Contact

Contact information for the exposed API.

Allowed in


Info

Nested elements


Attachable

Properties


Reference


CookieParameter

A @OA\Request cookie parameter.

Allowed in


Components, PathItem, Operation, Get, Post, Put, Delete, Patch, Head, Options, Trace

Nested elements


Schema, Examples, Attachable

Properties


Delete

Allowed in


PathItem

Nested elements


Parameter, PathParameter, Response, ExternalDocumentation, Server, RequestBody, Attachable

Properties


Discriminator

The discriminator is a specific object in a schema which is used to inform the consumer of the specification of an alternative schema based on the value associated with it.

This object is based on the JSON Schema Specification and uses a predefined subset of it. On top of this subset, there are extensions provided by this specification to allow for more complete documentation.

Allowed in


Schema, Property, AdditionalProperties, Items, JsonContent, XmlContent

Nested elements


Attachable

Properties


Reference


Encoding

A single encoding definition applied to a single schema property.

Allowed in


JsonContent, XmlContent, MediaType, Property

Nested elements


Header, Attachable

Properties


Reference


Examples

Allowed in


Components, Schema, Parameter, PathParameter, MediaType, JsonContent, XmlContent

Nested elements


Attachable

Properties


ExternalDocumentation

Allows referencing an external resource for extended documentation.

Allowed in


OpenApi, Tag, Schema, AdditionalProperties, Property, Operation, Get, Post, Put, Delete, Patch, Head, Options, Trace, Items, JsonContent, XmlContent

Nested elements


Attachable

Properties


Reference


Flow

Configuration details for a supported OAuth flow.

Allowed in


SecurityScheme

Nested elements


Attachable

Properties


Reference


Get

Allowed in


PathItem

Nested elements


Parameter, PathParameter, Response, ExternalDocumentation, Server, RequestBody, Attachable

Properties


Head

Allowed in


PathItem

Nested elements


Parameter, PathParameter, Response, ExternalDocumentation, Server, RequestBody, Attachable

Properties


Header

Allowed in


Encoding, Components, Response

Nested elements


Schema, Attachable

Properties


Reference


HeaderParameter

A @OA\Request header parameter.

Allowed in


Components, PathItem, Operation, Get, Post, Put, Delete, Patch, Head, Options, Trace

Nested elements


Schema, Examples, Attachable

Properties


[Info](https://github.co...

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport