Download the PHP package jdkweb/rdw-api-filament without Composer
On this page you can find all versions of the php package jdkweb/rdw-api-filament. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rdw-api-filament
RDW API extension for Filament
Laravel wrapper for the Dutch open mobility data. Basic Vehicle Registration All non-sensitive data of the Dutch vehicle fleet.
Laravel application to get vehicle information from opendata.rdw.nl or overheid.io.
This package extends jdkweb/rdw-api to be used in Filament.
Table of contents
- Installation
- Translation
- Usage
- Form Field
- Handle Response
- Example
- Demo
Installation
Requires PHP 8.1 and Laravel 10 and Filament 3.0 or higher \ Install the package via composer:
Translation
Translations available:
Usage
- Form Field
- RDW Response
Form Field
Basic usage
- Request to the active API (default: opendata.rdw.nl) \
- All RDW endpoints are selected
All options used
Options
Select other API than default
Overwrite the config settings
- 0 or 'opendata' for using the RDW API opendata.rdw.nl [default]
- 1 or 'overheidio' for using the overheid.io API
Select endpoints for request
` Available endpoints (not case sensitive):
- Endpoints::VEHICLE | vehicle
- Endpoints::VEHICLE_CLASS |vehicle_class
- Endpoints::FUEL | fuel
- Endpoints::BODYWORK | bodywork
- Endpoints::BODYWORK_SPECIFIC | bodywork_specific
- Endpoints::AXLES | axles
- Endpoints::cases() [default]
Format of the response output
- OutputFormat::ARRAY | array [default]
- OutputFormat::JSON | json
- OutputFormat::AML | xml
by using this method the response contains a formated output. see RdwApiResponse
Set output language
Force output language, so form can be English and RDW response in Dutch. \ Available:
- nl
- en
Basic style for Dutch licenseplate
Handle RDW response
RDW API request with to filament form data
RDW Response
Response data form the RDW API request in $result:
See rdw-api for the response methods
Example
Create Filament form
Handle Form data
Demo
There is a demo available to test this wrapper \ Two options to use the demo:
-
.env
Add this value to .env
-
config
Import the rwd-api config en set the value to 1 (Installation)
Demo: 0 = Off | 1 = On