wterberg / dcat-ap-donl
Allows for creation and validation of datasets conforming to the DCAT-AP-DONL 1.1 metadata standard
Installs: 2 924
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/wterberg/dcat-ap-donl
Requires
- php: ^8.2
 - ext-curl: *
 - ext-json: *
 
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75
 - phpstan/phpstan: ^1.10
 - phpunit/phpunit: ^10.0
 - xpertselect/tools: ^1.0
 
README
github.com/WterBerg/php-dcatapdonl
This package allows for creation and validation of datasets conforming to the DCAT-AP-DONL 1.1 metadata standard.
License
View the LICENSE.md file for licensing details.
Installation
Installation of wterberg/dcat-ap-donl is done via Composer.
composer require wterberg/dcat-ap-donl
Usage
Usage can be as simple as:
use DCAT_AP_DONL\DCATDataset; use DCAT_AP_DONL\DCATLiteral; $dataset = new DCATDataset(); $dataset->setTitle(new DCATLiteral('My new dataset'); $validation = $dataset->validate(); var_dump($validation->getMessages());