This package was created to assist in the development of API's for the standard used in asteroid.
You can install the package via composer:
composer require bildvitta/navpi-php
use Bildvitta\Navpi\Fields;
use Bildvitta\Navpi\NavpiResource;
class CustomResource extends NavpiResource
{
protected function fieldsMap()
{
return [
'name' => (new Fields\TextField('name'))
->label('Nome completo')
->exceptActions(['filters']),
];
}
}
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.