{"id":28372799,"url":"https://github.com/itsnubix/nowcal","last_synced_at":"2025-06-25T12:31:48.429Z","repository":{"id":56994526,"uuid":"169808234","full_name":"itsnubix/nowcal","owner":"itsnubix","description":"A modern PHP library for generating iCalendar v2.0 events.","archived":false,"fork":false,"pushed_at":"2025-04-12T03:50:06.000Z","size":67,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T17:17:03.548Z","etag":null,"topics":["ical","icalendar","ics","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsnubix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-08T22:39:05.000Z","updated_at":"2025-04-12T03:49:41.000Z","dependencies_parsed_at":"2024-04-21T18:40:21.453Z","dependency_job_id":"dbc46b99-2688-47cc-a0fd-26b3c71a32c1","html_url":"https://github.com/itsnubix/nowcal","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/itsnubix/nowcal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsnubix%2Fnowcal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsnubix%2Fnowcal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsnubix%2Fnowcal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsnubix%2Fnowcal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsnubix","download_url":"https://codeload.github.com/itsnubix/nowcal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsnubix%2Fnowcal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261874478,"owners_count":23223124,"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","icalendar","ics","php-library"],"created_at":"2025-05-29T16:40:43.859Z","updated_at":"2025-06-25T12:31:48.417Z","avatar_url":"https://github.com/itsnubix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NowCal\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Total Downloads](https://img.shields.io/packagist/dt/itsnubix/nowcal.svg?style=flat-square)](https://packagist.org/packages/itsnubix/nowcal)\n\nA modern PHP library for generating iCalendar v2.0 events.\n\n## Getting Started\n\n### Installation\n\nInstall with composer using `composer require itsnubix/nowcal`\n\n### Basic usage\n\n```php\nuse NowCal\\NowCal;\n\n$event = NowCal::create(['start' =\u003e 'October 5, 2019 6:03PM']))\n  -\u003esummary('Daft Punk is playing')\n  -\u003elocation('My House');\n```\n\n## API\n\n### Properties\n\nThe following properties can be get/set on the NowCal instance. Users can take advantage of the set property helpers in the class, i.e.: `$nowcal-\u003elocation('Event Location');` as they provide a nice syntax to string multiple calls together and support callbacks if necessary.\n\n| Property | Description                                                                                                                         |\n|----------|-------------------------------------------------------------------------------------------------------------------------------------|\n| uid      | A globally unique ID. NOTE: passing the same ICS file into a calendar app with the same UI allows you to update the existing invite |\n| start    | A string parseable by DateTime                                                                                                      |\n| timezone | A string parseable by DateTimeZone                                                                                                  |\n| end      | A string parseable by DateTime, as per RFC 5545, only an end value or duration value may be used                                    |\n| duration | A string parseable by DateInterval, as per RFC 5545, only an end value or duration value may be used                                |\n| summary  | A short description of the event                                                                                                    |\n| location | The location where the event is taking place                                                                                        |\n| sequence | An integer that represents the version number                                                                                       |\n| method   | send if required, publish/cancel/etc                                                                                                |\n| reminder | A simple display reminder. A string parseable by DateInterval.                                                                      |\n\n### Methods\n\n```php\n$props = [\n  'start' =\u003e 'now',\n  'end' =\u003e 'now + 1 hour',\n  // OR\n  'duration' =\u003e '28d 6h 42m 12s',\n  'summary' =\u003e 'Daft Punk is playing',\n  'location' =\u003e 'My House',\n];\n\n// Creates a NowCal instance\n$nowcal = new NowCal($props); // or NowCal::create($props);\n\n// Exports a raw output array\n$nowcal-\u003eraw; // or NowCal::raw($props)\n\n// Exports a plain text version\n$nowcal-\u003eplain; // or NowCal::plain($props)\n\n// Exports a path to a tempfile\n$nowcal-\u003efile; // or NowCal::file($props)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsnubix%2Fnowcal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsnubix%2Fnowcal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsnubix%2Fnowcal/lists"}