{"id":14974619,"url":"https://github.com/olivernybroe/laracalendar","last_synced_at":"2025-09-10T00:25:53.027Z","repository":{"id":57076034,"uuid":"103414073","full_name":"olivernybroe/LaraCalendar","owner":"olivernybroe","description":"Recurring calendar events for Laravel","archived":false,"fork":false,"pushed_at":"2018-04-14T14:28:20.000Z","size":89,"stargazers_count":17,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T10:47:21.428Z","etag":null,"topics":["calendar","laravel","laravel-package","laravel5","laravel55","php"],"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/olivernybroe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-13T15:01:34.000Z","updated_at":"2024-01-08T13:14:42.000Z","dependencies_parsed_at":"2022-08-24T14:55:48.069Z","dependency_job_id":null,"html_url":"https://github.com/olivernybroe/LaraCalendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olivernybroe/LaraCalendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivernybroe%2FLaraCalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivernybroe%2FLaraCalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivernybroe%2FLaraCalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivernybroe%2FLaraCalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olivernybroe","download_url":"https://codeload.github.com/olivernybroe/LaraCalendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olivernybroe%2FLaraCalendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274390645,"owners_count":25276406,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calendar","laravel","laravel-package","laravel5","laravel55","php"],"created_at":"2024-09-24T13:50:49.306Z","updated_at":"2025-09-10T00:25:52.980Z","avatar_url":"https://github.com/olivernybroe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/olivernybroe/LaraCalendar.svg?branch=master)](https://travis-ci.org/olivernybroe/LaraCalendar)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Latest Stable Version](https://poser.pugx.org/uruloke/lara-calendar/v/stable)](https://packagist.org/packages/uruloke/lara-calendar)\n[![Total Downloads](https://poser.pugx.org/uruloke/lara-calendar/downloads)](https://packagist.org/packages/uruloke/lara-calendar)\n[![codecov](https://codecov.io/gh/uruloke/LaraCalendar/branch/master/graph/badge.svg)](https://codecov.io/gh/uruloke/LaraCalendar)\n[![StyleCI](https://styleci.io/repos/103414073/shield?branch=master)](https://styleci.io/repos/103414073)\n\nDocumentation is still in development.\n\n## Introduction\nBuilding a calendar can be troublesome, especially when you deal with recurring events. This package tries to solve this problem by making an easy to use event builder with extensibility. \u003cbr\u003e\n\nThe package is made for Laravel and uses Laravel Collections extensively. \n\nFor installing the package, just run and you are good to go. \n```\n$ composer require uruloke/lara-calendar\n```\nThe service providers is autoloaded, so enjoy! \n\n## Example\nLet's say we want to create an event which repeats every Monday, Tuesday, Wednesday and Thursday.\nWe can generate this simply by doing the following:\n\n```php\n$builder = new EventBuilder();\n$builder-\u003estartsAt(Carbon::parse(\"2017-09-05 08:00\"));\n$builder-\u003eendsAt(Carbon::parse(\"2017-09-05 18:00\"));\n$builder-\u003eweekly([Monday::class, Tuesday::class, Wednesday::class, Thursday::class]);\n\n// Dump the results\n$builder-\u003egetNextEvents(3)\n\n```\nThe dumped data for the next 3 events would then be:\n```\t\t\nUruloke\\LaraCalendar\\EventCollection {#221\n  #items: array:3 [\n    0 =\u003e Uruloke\\LaraCalendar\\Models\\Event {#225\n      #start: Uruloke\\LaraCalendar\\Carbon {#230\n        +\"date\": \"2017-09-05 08:00:00.000000\"\n        +\"timezone_type\": 3\n        +\"timezone\": \"UTC\"\n      }\n      #ends: Uruloke\\LaraCalendar\\Carbon {#231\n        +\"date\": \"2017-09-05 18:00:00.000000\"\n        +\"timezone_type\": 3\n        +\"timezone\": \"UTC\"\n      }\n    }\n    1 =\u003e Uruloke\\LaraCalendar\\Models\\Event {#232\n      #start: Uruloke\\LaraCalendar\\Carbon {#233\n        +\"date\": \"2017-09-06 08:00:00.000000\"\n        +\"timezone_type\": 3\n        +\"timezone\": \"UTC\"\n      }\n      #ends: Uruloke\\LaraCalendar\\Carbon {#234\n        +\"date\": \"2017-09-06 18:00:00.000000\"\n        +\"timezone_type\": 3\n        +\"timezone\": \"UTC\"\n      }\n    }\n    2 =\u003e Uruloke\\LaraCalendar\\Models\\Event {#235\n      #start: Uruloke\\LaraCalendar\\Carbon {#236\n        +\"date\": \"2017-09-07 08:00:00.000000\"\n        +\"timezone_type\": 3\n        +\"timezone\": \"UTC\"\n      }\n      #ends: Uruloke\\LaraCalendar\\Carbon {#237\n        +\"date\": \"2017-09-07 18:00:00.000000\"\n        +\"timezone_type\": 3\n        +\"timezone\": \"UTC\"\n      }\n    }\n  ]\n}\n```\n## Recurrences\n\n### Weekly\n\n### BiWeekly\n\n### EvenWeeks\n\n### UnevenWeeks\n\n\n## Filters\n\n### Filter days out\nThere might be a specific day which you want to blacklist from your event. This can be achieved by using the `withoutDay` method.\nJust parse in a day and it will ignore that specific day.\n\n```\n$builder = new EventBuilder();\n$builder-\u003estartsAt(Carbon::parse(\"2017-09-05 08:00\"));\n$builder-\u003eendsAt(Carbon::parse(\"2017-09-05 18:00\"));\n$builder-\u003eallWeekDays();\n$builder-\u003ewithoutDay(Carbon::parse(\"2017-09-07\"));\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivernybroe%2Flaracalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folivernybroe%2Flaracalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivernybroe%2Flaracalendar/lists"}