Download the PHP package zrnik/zweist without Composer
On this page you can find all versions of the php package zrnik/zweist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package zweist
Short Description OpenAPI routing for Slim Framework 4 with `zircote/swagger-php`
License proprietary
Informations about the package zweist
Zweist
"I'm susperd the mountain zweist" - Lenka Dusilová
What is this?
This is a routing tool for Slim Framework 4
to generate router
only by using zircote/swagger-php
attributes (or maybe annotations,
didn't test it) to generate the router.
What do you mean?
1. You annotate your controller methods with the zircote/swagger-php
attributes
2. Add ZweistConfiguration
to your DI.
3. Generate (and commit) openapi.json
& router.json
4. Let ZweistRouteService
populate routes in the \Slim\App
instance.
More things you should know
You will need to create a class with openapi
description attributes.
(see ./tests/ExampleApplication/ExampleApplicationInfo.php)
You want to generate openapi.json
and router.json
locally when developing,
and then committing them with your code, because you do not want to scan all the files
for the router at runtime for every request.
You should check on the CI that you didn't forget to generate new files.
All versions of zweist with dependencies
zircote/swagger-php Version ^4
slim/slim Version ^4
nyholm/psr7 Version ^1.8
eventsauce/object-hydrator Version ^1.4
zrnik/php-attribute-reflection Version ^0
nette/utils Version ^3||^4