PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

New open source project: Sabre VObject

Note: This article was originally published at Planet PHP on 19 April 9560.
Planet PHP

Over the last little while I've been working at fruux on a new open source project: an iCalendar/vCard parser for PHP.

Actually, the project has existed since 2010 as it's really a spin-off from SabreDAV. I felt like the library could appeal to a wider audience, and benefit from a separate release schedule.

The tool heavily makes use of PHP's magic object and array accessors, to provide an API quite similar to what simplexml is for XML. In addition it contains features for parsing dates, expanding recurrence rules and automatically creating FREEBUSY reports.

To start using it, simply check out the github project page. The readme contains a lot of documentation.

Some things I want to add in the future:

  • Conversion tools for vcalendar 1.0, vcard 2.1, 3.0, 4.0, etc.
  • A relaxed parsing mode, that's a bit more forgiven to broken formats.
  • Convenience API's for formatting and parsing property values.
  • Validation for all property values and components.

Currently no zip is provided. You should simply add it to your composer dependencies, as:

  1. "require" : {
  2. "sabre/vobject" : "2.0.*"
  3. }

I hope it's useful, and would love to hear your feedback!