w2w / apie-bensampo-enum-plugin
Adds enums from bensampo/laravel-enum to Apie
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/w2w/apie-bensampo-enum-plugin
Requires
- php: ^7.2
- bensampo/laravel-enum: >=1.19
- w2w/apie: ^4.0
Requires (Dev)
- orchestra/testbench: 3.6.*
- phpunit/phpunit: ^7.0|^8.0
This package is auto-updated.
Last update: 2022-06-12 09:58:53 UTC
README
Adds enum support created with bensampo/laravel-enum to apie with a proper OpenAPI specifcation.
how to use:
Add W2w\Lib\ApieBenSampoEnumPlugin\BenSampoEnumPlugin to the list of Apie plugins you want to add and you will have full support for enums created with bensampo/laravel-enum.
<?php //config/apie.php: use W2w\Lib\ApieBenSampoEnumPlugin\BenSampoEnumPlugin; return [ 'plugins' => [BenSampoEnumPlugin::class], ];
Localization strings
The localization strings for enums are not used. In case you want to localize this, you require to make your own normalizer.