Giter VIP home page Giter VIP logo

ics-parser's Introduction

PHP ICS Parser

Latest Stable Version Total Downloads Reference Status Dependency Status

--

Installation

Requirements

  • PHP 5 >= 5.3.0
$ curl -s https://getcomposer.org/installer | php
  • composer.json
    • โš ๏ธ Packagist owner is johngrogg and not u01jmg3
{
    "require": {
        "johngrogg/ics-parser": "dev-master"
    }
}

--

API

ICal API

Function Parameter(s) Description
initLines $lines Initialises lines from file
initString $contents Initialises lines from a string
initURL $url Initialises lines from a URL
calendarDescription - Returns the calendar description
calendarName - Returns the calendar name
calendarTimeZone - Returns the calendar timezone
events - Returns an array of EventObjects. Every event is a class with the event details being properties within it.
eventsFromRange $rangeStart = false, $rangeEnd = false Returns a sorted array of the events in a given range, or an empty array if no events exist in the range.
eventsFromInterval $interval Returns a sorted array of the events following a given string, or false if no events exist in the range.
freeBusyEvents - Returns an array of arrays with all free/busy events. Every event is an associative array and each property is an element it.
hasEvents - Returns a boolean value whether the current calendar has events or not
iCalDateToUnixTimestamp $icalDate Return Unix timestamp from iCal date time format
iCalDateWithTimeZone $event, $key Return a date adapted to the calendar timezone depending on the event TZID
isValidTimeZoneId $timezone Check if a timezone is valid
processDateConversions - Add fields DTSTART_tz and DTEND_tz to each event
processEvents - Performs some admin tasks on all events as taken straight from the ics file.
processRecurrences - Processes recurrence rules
sortEventsWithOrder $events, $sortOrder = SORT_ASC Sort events based on a given sort order

EventObject API

Function Parameter(s) Description
printData $html = '<p>%s: %s</p>' Return Event data excluding anything blank within an HTML template

--

Credits

  • Martin Thoma (programming, bug fixing, project management)
  • Frank Gregor (programming, feedback, testing)
  • John Grogg (programming, addition of event recurrence handling)
  • Jonathan Goode (programming, bug fixing, enhancement, coding standard)

Tools for Testing

ics-parser's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.