Fixed composer, readme
This commit is contained in:
parent
cad2cc84c7
commit
b01163cb1e
22
README.md
Normal file
22
README.md
Normal file
@ -0,0 +1,22 @@
|
||||
# Calendar related datasets
|
||||
|
||||
This package contains calendar related data that can be imported into any application.
|
||||
|
||||
## Datasets
|
||||
|
||||
Name | Contents
|
||||
---|---
|
||||
`bankholidays.se` | Swedish bank holidays
|
||||
|
||||
## Usage
|
||||
|
||||
Open the dataset and iterate the data:
|
||||
|
||||
```php
|
||||
$dm = new NoccyLabs\Dataset\DatasetManager();
|
||||
$ds = $dm->openDataset("noccylabs/dataset-calendar#bankholidays.se");
|
||||
// Iterate the records
|
||||
foreach ($ds as $row) {
|
||||
// ...
|
||||
}
|
||||
```
|
@ -1,4 +1,8 @@
|
||||
{
|
||||
"name": "noccylabs/dataset-calendar",
|
||||
"description": "Dataset containing bank holidays and other calendar info"
|
||||
"description": "Dataset containing bank holidays and other calendar info",
|
||||
"license": "CC-BY-SA-4.0",
|
||||
"suggest": {
|
||||
"noccylabs/dataset": "to parse the dataset"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user