Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wterberg/php-dcatapdonl
Allows for creation and validation of datasets according to the DCAT-AP-DONL metadata standard.
https://github.com/wterberg/php-dcatapdonl
composer dcat dcat-ap-donl php
Last synced: about 1 month ago
JSON representation
Allows for creation and validation of datasets according to the DCAT-AP-DONL metadata standard.
- Host: GitHub
- URL: https://github.com/wterberg/php-dcatapdonl
- Owner: WterBerg
- License: mit
- Created: 2018-09-02T19:59:17.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T11:39:01.000Z (over 1 year ago)
- Last Synced: 2024-12-19T15:51:15.569Z (about 1 month ago)
- Topics: composer, dcat, dcat-ap-donl, php
- Language: PHP
- Homepage:
- Size: 691 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WterBerg / PHP DCAT-AP-DONL
[github.com/WterBerg/php-dcatapdonl](https://github.com/WterBerg/php-dcatapdonl)
This package allows for creation and validation of datasets conforming to the [DCAT-AP-DONL 1.1](https://dcat-ap-donl.readthedocs.io) metadata standard.
## License
View the `LICENSE.md` file for licensing details.
## Installation
Installation of [`wterberg/dcat-ap-donl`](https://packagist.org/packages/wterberg/dcat-ap-donl) is done via [Composer](https://getcomposer.org).
```shell
composer require wterberg/dcat-ap-donl
```## Usage
Usage can be as simple as:
```php
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());
```