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

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.

CircleCI codecov Travis Scrutinizer Code Quality

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.