moved includes and cleaned up paths
This commit is contained in:
parent
1490a96f14
commit
e7525fda56
45 changed files with 15 additions and 10 deletions
44
include/icalparser/readme.md
Normal file
44
include/icalparser/readme.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
# PHP iCal Parser
|
||||
|
||||
[](https://travis-ci.org/OzzyCzech/icalparser) [](https://packagist.org/packages/om/icalparser) [](https://packagist.org/packages/om/icalparser) [](https://packagist.org/packages/om/icalparser) [](https://packagist.org/packages/om/icalparser)
|
||||
|
||||
Internet Calendaring Parser [rfc2445](http://www.ietf.org/rfc/rfc2445.txt) or iCal parser is simple PHP 5.6+ class for parsing format into array.
|
||||
|
||||
## How to install
|
||||
|
||||
```bash
|
||||
composer require om/icalparser
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once '../vendor/autoload.php';
|
||||
$cal = new \om\IcalParser();
|
||||
$results = $cal->parseFile(
|
||||
'https://www.google.com/calendar/ical/cs.czech%23holiday%40group.v.calendar.google.com/public/basic.ics'
|
||||
);
|
||||
|
||||
foreach ($cal->getSortedEvents() as $r) {
|
||||
echo sprintf(' <li>%s - %s</li>' . PHP_EOL, $r['DTSTART']->format('j.n.Y'), $r['SUMMARY']);
|
||||
}
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
- PHP 5.6+
|
||||
|
||||
## Run tests
|
||||
|
||||
iCal parser using [Nette Tester](https://github.com/nette/tester).
|
||||
The tests can be invoked via [composer](https://getcomposer.org/).
|
||||
|
||||
```bash
|
||||
composer update
|
||||
composer tests
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
- add ATTENDEE support http://www.kanzaki.com/docs/ical/attendee.html
|
Loading…
Add table
Add a link
Reference in a new issue