w2w / apie-bensampo-enum-plugin
This package is abandoned and no longer maintained.
No replacement package was suggested.
Adds enums from bensampo/laravel-enum to Apie
2.0.0
2020-09-10 15:08 UTC
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.