{"id":25514347,"url":"https://github.com/welpdev/icalbundle","last_synced_at":"2025-04-10T18:23:20.587Z","repository":{"id":48859454,"uuid":"74591661","full_name":"welpdev/icalBundle","owner":"welpdev","description":"Symfony Bundle to manage .ics iCal file (creating and eventually reading)","archived":false,"fork":false,"pushed_at":"2024-04-24T12:54:09.000Z","size":20,"stargazers_count":10,"open_issues_count":4,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T16:04:01.143Z","etag":null,"topics":["bundle","ics-ical","packagist","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":null,"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/welpdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-23T15:53:58.000Z","updated_at":"2024-02-29T23:08:40.000Z","dependencies_parsed_at":"2022-09-03T14:11:12.120Z","dependency_job_id":null,"html_url":"https://github.com/welpdev/icalBundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welpdev%2FicalBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welpdev%2FicalBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welpdev%2FicalBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welpdev%2FicalBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/welpdev","download_url":"https://codeload.github.com/welpdev/icalBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248270598,"owners_count":21075795,"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":["bundle","ics-ical","packagist","php","symfony","symfony-bundle"],"created_at":"2025-02-19T12:18:01.953Z","updated_at":"2025-04-10T18:23:20.553Z","avatar_url":"https://github.com/welpdev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# icalBundle\n\n[![Build Status](https://travis-ci.org/welpdev/icalBundle.svg?branch=master)](https://travis-ci.org/welpdev/icalBundle)\n[![Packagist](https://img.shields.io/packagist/v/welp/ical-bundle.svg)](https://packagist.org/packages/welp/ical-bundle)\n[![Packagist](https://img.shields.io/packagist/dt/welp/ical-bundle.svg)](https://packagist.org/packages/welp/ical-bundle)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/welpdev/icalBundle/blob/master/LICENSE)\n\nSymfony Bundle to manage .ics iCal file (creating and eventually reading)\n\nuse of the library: \u003chttps://github.com/jasvrcek/ICS\u003e\n\n## Setup\n\nAdd bundle to your project:\n\n```bash\ncomposer require welp/ical-bundle\n```\n\nAdd `Welp\\IcalBundle\\WelpIcalBundle` to your `AppKernel.php`:\n\n```php\n$bundles = [\n    // ...\n    new Welp\\IcalBundle\\WelpIcalBundle(),\n];\n```\n\n## Configuration\n\nIn your `config.yml`:\n\n```yaml\nwelp_ical:\n    default_timezone: \"Europe/Paris\"\n    default_prodid: \"-//WelpIcalBundle//Calendar App//FR\"\n```\n\n## Usage\n\n``` php\n\u003c?php\n\n    ...\n\n    /**\n     * Generate calendar event ICAL for welpAction\n     * @Config\\Route(\"/ical\", name=\"app_ical\")\n     */\n    public function icalAction()\n    {\n        $icalFactory = $this-\u003eget('welp_ical.factory');\n\n        //Create a calendar\n        $calendar = $icalFactory-\u003ecreateCalendar();\n\n        //Create an event\n        $eventOne = $icalFactory-\u003ecreateCalendarEvent();\n        $eventOne-\u003esetStart(new \\DateTime())\n            -\u003esetSummary('Family reunion')\n            -\u003esetUid('event-uid');\n\n        //add an Attendee\n        $attendee = $icalFactory-\u003ecreateAttendee();\n        $attendee-\u003esetValue('moe@example.com')\n            -\u003esetName('Moe Smith');\n        $eventOne-\u003eaddAttendee($attendee);\n\n        //set the Organizer\n        $organizer = $icalFactory-\u003ecreateOrganizer();\n        $organizer-\u003esetValue('titouan@welp.fr')\n            -\u003esetName('Titouan BENOIT')\n            -\u003esetLanguage('fr');\n        $eventOne-\u003esetOrganizer($organizer);\n\n        //new event\n        $eventTwo = $icalFactory-\u003ecreateCalendarEvent();\n        $eventTwo-\u003esetStart(new \\DateTime())\n            -\u003esetSummary('Dentist Appointment')\n            -\u003esetUid('event-uid');\n\n        $calendar\n            -\u003eaddEvent($eventOne)\n            -\u003eaddEvent($eventTwo);\n\n        $headers = array();\n        $calendarResponse = new Welp\\IcalBundle\\Response\\CalendarResponse($calendar, 200, $headers);\n\n        return $calendarResponse;\n\n    }\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelpdev%2Ficalbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwelpdev%2Ficalbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelpdev%2Ficalbundle/lists"}