cultuurnet/calendar-summary

Library to convert a cdbXML input to a readable summary

1.1.3 2018-05-03 13:39 UTC

This package is auto-updated.

Last update: 2022-09-04 15:26:42 UTC


README

It should only be used with Culturefeed and CdbXml integrations. For all other uses this project has been deprecated and superseded by calendar-summary-v3

calendar-summary

Build Status Coverage Status

Installation

You can install the CultuurNet\calendar-summary PHP library in different ways:

  • Standalone. Clone or download from github and use [Composer][composer]. Run composer install from the root of the clone to download the necessary dependencies. Standalone usage is probably only useful for testing purposes.
  • Inside your project: require the cultuurnet/calendar-summary package (it is [registered on Packagist][packagist]) and the cultuurnet/cdb package in your project's composer.json file and run composer update.
{
    "require": {
        "cultuurnet/calendar-summary": "~1.0",
    }
}

How it works

The calendar-summary PHP takes a CultureFeed_Cdb_Data_Calendar object (hence the dependency on cultuurnet/cdb, and formats it. Right now there's a HTML formatter and a plain text formatter. But other formatters can easily be implemented.