{"id":17456685,"url":"https://github.com/martinthoma/ics-parser","last_synced_at":"2025-04-24T01:29:53.129Z","repository":{"id":29532409,"uuid":"33071057","full_name":"MartinThoma/ics-parser","owner":"MartinThoma","description":"Automatically exported from code.google.com/p/ics-parser","archived":false,"fork":false,"pushed_at":"2018-01-01T23:11:00.000Z","size":159,"stargazers_count":49,"open_issues_count":22,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T05:41:11.766Z","etag":null,"topics":["ical","ics","ics-parser","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MartinThoma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-29T11:47:29.000Z","updated_at":"2025-02-20T15:41:21.000Z","dependencies_parsed_at":"2022-08-22T08:10:53.787Z","dependency_job_id":null,"html_url":"https://github.com/MartinThoma/ics-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fics-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fics-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fics-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fics-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinThoma","download_url":"https://codeload.github.com/MartinThoma/ics-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250543735,"owners_count":21447958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ical","ics","ics-parser","php"],"created_at":"2024-10-18T02:49:30.722Z","updated_at":"2025-04-24T01:29:53.101Z","avatar_url":"https://github.com/MartinThoma.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"This ics-parser is under MIT license. You may use it for your own sites for\nfree, but I would like to get a notice when you use it (info@martin-thoma.de).\nIf you use it for another software project, please let the information / links\nto this project in the files.\n\nIt is hosted at https://github.com/MartinThoma/ics-parser/ and PEAR coding standard is\nused.\n\n**This project will not be continued. [johngrogg/ics-parser](https://github.com/johngrogg/ics-parser) is based on this project, but still supported and a few features were added.**\n\n\n## Requirements\n\n  * PHP\n\n\n\n## Installation\n\n  * Copy all files to a folder where PHP can be executed\n  * Include class.iCalReader.php to your project\n\n## Credits\n\n* Martin Thoma (programming, bug-fixing, project management)\n* Frank Gregor (programming, feedback, testing)\n\n\n## Basic Usage ##\nThe ics-Parser should only provide a very basic object to work with:\n\n```\nrequire 'class.iCalReader.php';\n\n$ical = new ical('MyCal.ics');\nprint_r($ical-\u003eevents());\n```\n\n## What does $ical-\u003eevents() return? ##\n```\nArray\n(\n    [0] =\u003e Array\n        (\n            [DTSTART] =\u003e 20110105T090000Z\n            [DTEND] =\u003e 20110107T173000Z\n            [DTSTAMP] =\u003e 20110121T195741Z\n            [UID] =\u003e 15lc1nvupht8dtfiptenljoiv4@google.com\n            [CREATED] =\u003e 20110121T195616Z\n            [DESCRIPTION] =\u003e This is a short description\\nwith a new line. Some \"special\" 'signs' may be \u003cinteresting\u003e\\, too.\n            [LAST-MODIFIED] =\u003e 20110121T195729Z\n            [LOCATION] =\u003e Kansas\n            [SEQUENCE] =\u003e 2\n            [STATUS] =\u003e CONFIRMED\n            [SUMMARY] =\u003e My Holidays\n            [TRANSP] =\u003e TRANSPARENT\n        )\n\n    [1] =\u003e Array\n        (\n            [DTSTART] =\u003e 20110112\n            [DTEND] =\u003e 20110116\n            [DTSTAMP] =\u003e 20110121T195741Z\n            [UID] =\u003e 1koigufm110c5hnq6ln57murd4@google.com\n            [CREATED] =\u003e 20110119T142901Z\n            [DESCRIPTION] =\u003e \n            [LAST-MODIFIED] =\u003e 20110119T152216Z\n            [LOCATION] =\u003e \n            [SEQUENCE] =\u003e 2\n            [STATUS] =\u003e CONFIRMED\n            [SUMMARY] =\u003e test 11\n            [TRANSP] =\u003e TRANSPARENT\n        )\n)\n```\n\n## How do I get a Unix timestamp out of a ical date? ##\nIf the date is before 1970, it returns false.\n\n```\n\u003c?\nrequire 'class.iCalReader.php';\n\n$ical = new ical('MyCal.ics');\n$array= $ical-\u003eevents();\n\n// The ical date\n$date = $array[0]['DTSTART'];\necho $date;\n\n// The Unix timestamp\necho $ical-\u003eiCalDateToUnixTimestamp($date);\n\n?\u003e\n```\n\n## How many events / todos are in the iCal? ##\n```\n\u003c?\nrequire 'class.iCalReader.php';\n\n$ical = new ical('MyCal.ics');\n\n// The number of events\necho $ical-\u003eevent_count;\n\n// The number of events\necho $ical-\u003etodo_count;\n\n?\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinthoma%2Fics-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinthoma%2Fics-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinthoma%2Fics-parser/lists"}