### Running PHP ICS Parser Tests via Composer Source: https://github.com/u01jmg3/ics-parser/blob/master/README.md This shell command executes the test suite for the installed PHP ICS Parser library using Composer. This is useful for verifying the installation and functionality. ```Shell composer test ``` -------------------------------- ### Inspecting Parsed Event Date Array in PHP ICS Parser Source: https://github.com/u01jmg3/ics-parser/blob/master/README.md This PHP snippet illustrates how to access and dump the `dtstart_array` property of a parsed event object. This property provides a more detailed breakdown of the event's start date, including time zone information and the original string. ```PHP var_dump($event->dtstart_array); ``` -------------------------------- ### Instantiating PHP ICS Parser with Custom User Agent Source: https://github.com/u01jmg3/ics-parser/blob/master/README.md This PHP snippet demonstrates how to create a new instance of the `ICal` parser, providing a custom user agent string. This is particularly useful when dealing with servers like Outlook that require a specific `User-Agent` header. ```PHP $ical = new ICal($url, array('httpUserAgent' => 'A Different User Agent')); ``` -------------------------------- ### Adding PHP ICS Parser Dependency with Composer Source: https://github.com/u01jmg3/ics-parser/blob/master/README.md This snippet shows how to add the `johngrogg/ics-parser` library as a dependency to your project's `composer.json` file, specifying the latest stable release (`^3`). Composer is required to manage project dependencies. ```YAML { "require": { "johngrogg/ics-parser": "^3" } } ``` -------------------------------- ### Dumping Full Calendar Data with PHP ICS Parser Source: https://github.com/u01jmg3/ics-parser/blob/master/README.md This PHP snippet demonstrates how to access and dump the entire parsed calendar data structure. The parser returns an associative array representing the calendar. ```PHP var_dump($ical->cal); ``` -------------------------------- ### Dumping All Events Data with PHP ICS Parser Source: https://github.com/u01jmg3/ics-parser/blob/master/README.md This PHP snippet shows how to access and dump all parsed event data from the calendar. The `events()` method returns an array of event objects or associative arrays, depending on the parser's configuration and version. ```PHP var_dump($ical->events()); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.