wterberg / dcat-ap-donl
Allows for creation and validation of datasets conforming to the DCAT-AP-DONL 1.1 metadata standard
Installs: 2 556
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^8.0
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^9
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());