ContextQMD
Libraries
Rankings
Queue
About
Log in
Get started
Open menu
Back to Libraries
Swagger Php
swagger-php
GitHub
swagger-php
zircote/swagger-php
swaggerphp
zircoteswaggerphp
zircote
Homepage
14 versions
44 pages (6.6.0)
5 aliases
14
Versions
44
Pages (6.6.0)
5
Aliases
Pages
Versions
Usage
6.6.0
▼
stable
swagger-php
Core Concepts
Annotation Lifecycle
Structural Concepts
Scanning
+3 more
github.com/zircote/swagger-php/blob/6.6.0/CONTE...
4.2 KB
Full page
ADR-001: Context Keys and Annotation Lifecycle
Context
Context Keys
Source location keys
Annotation relationship keys
+13 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
8.7 KB
Full page
ADR-002: Analysis Registries and Tree Structure
Context
The Two Registries
`$analysis->annotations` (SplObjectStorage)
`$context->annotations` (array)
+7 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
4.3 KB
Full page
Readme
Custom processors
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.5 KB
Full page
Augmentation
Summary and description
References
Tags
github.com/zircote/swagger-php/blob/6.6.0/docs/...
2.6 KB
Full page
Cookbook
Adding examples to `@OA\Response`
External documentation
Properties with union types
Referencing a security scheme
+16 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
16.6 KB
Full page
Enums
Enum cases
Backed enums
Default behaviour for backed enums
Using the backing value of an enum
github.com/zircote/swagger-php/blob/6.6.0/docs/...
3.4 KB
Full page
Example Reference
Colour.php
NameTrait.php
OpenApiSpec.php
Product.php
+22 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
8.9 KB
Full page
FAQ
Annotations missing
Skipping unknown `\SomeClass`
Using the `-b` `--bootstrap` option
Namespace mismatch
+1 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
5.6 KB
Full page
Generating OpenAPI documents
Using PHP
Using the Builder
Using spec mode
Using the Generator directly
github.com/zircote/swagger-php/blob/6.6.0/docs/...
5.2 KB
Full page
What is Swagger-PHP?
github.com/zircote/swagger-php/blob/6.6.0/docs/...
944 B
Full page
Installation
Globally
Type resolvers
Using doctrine annotations
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.4 KB
Full page
Migrating to v3
Updated CLI
Changed annotations
SWG is renamed to OA
@SWG\Swagger() is renamed to @OA\OpenApi()
+8 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.7 KB
Full page
Migrating to v4
Annotations as PHP attributes
Using annotations
Using attributes
Optional nesting
+9 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
5.4 KB
Full page
Migrating to v5
Removed deprecated elements
`\Openapi\Generator::getProcessors()` and `\Openapi\Generator::setProcessors()`
github.com/zircote/swagger-php/blob/6.6.0/docs/...
798 B
Full page
Migrating to v6
Type resolvers
Removed deprecated elements
Methods `\Openapi\Generator::getProcessors()` and `\Openapi\Generator::setProcessors()`
Static method `\Openapi\Generator::scan()`
+1 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.5 KB
Full page
Minimum requirements
Optional elements
Annotation placement
github.com/zircote/swagger-php/blob/6.6.0/docs/...
2.0 KB
Full page
🧪 Processing Modes
Classic (default)
Spec (beta) {#spec}
Hybrid (beta) {#hybrid}
Switching modes
+4 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
5.2 KB
Full page
References
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.5 KB
Full page
Shortcuts
`OA\Property` (spec only)
`OA\Parameter`
github.com/zircote/swagger-php/blob/6.6.0/docs/...
2.1 KB
Full page
🧪 Using Spec Attributes
Basic example
Schemas
Stacking Schema and Property
Operations
+23 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
18.3 KB
Full page
Under the hood
`Context`
Analysis
Documentation
Installation
+1 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.7 KB
Full page
Annotations
Escaping
Arrays and Objects
Constants
github.com/zircote/swagger-php/blob/6.6.0/docs/...
3.8 KB
Full page
Attributes
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.3 KB
Full page
Vendor extensions
github.com/zircote/swagger-php/blob/6.6.0/docs/...
878 B
Full page
Index
2. Update your code
3. Generate OpenAPI documentation
4. Explore and interact with your API
Links
github.com/zircote/swagger-php/blob/6.6.0/docs/...
1.6 KB
Full page
Annotation Reference
[AdditionalProperties](https://github.com/zircote/swagger-php/tree/master/src/Annotations/AdditionalProperties.php)
Allowed in
Nested elements
[Attachable](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Attachable.php)
+181 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
81.5 KB
Full page
🧪 Spec Pipeline Architecture
Assembler
Slot-map driven nesting
Level-by-level resolution
Root attributes
+11 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
11.7 KB
Full page
Attribute Reference
[AdditionalProperties](https://github.com/zircote/swagger-php/tree/master/src/Attributes/AdditionalProperties.php)
Allowed in
Nested elements
Parameters
+164 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
319.8 KB
Full page
Augmenter Reference
Command line
Programmatically with PHP
Default Augmenters
[Inheritance](https://github.com/zircote/swagger-php/tree/master/src/Augmenter/Inheritance.php)
+22 more
github.com/zircote/swagger-php/blob/6.6.0/docs/...
7.2 KB
Full page
1–30 of 44
1
2
Page 1