{"id":31017096,"url":"https://github.com/seebaermichi/monthly-calendar","last_synced_at":"2025-09-13T07:47:53.051Z","repository":{"id":41868629,"uuid":"433188685","full_name":"seebaermichi/monthly-calendar","owner":"seebaermichi","description":"A package which provides a monthly calendar with days and events depending on given months and events.","archived":false,"fork":false,"pushed_at":"2023-10-09T18:52:15.000Z","size":49,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T23:42:04.208Z","etag":null,"topics":["calendar","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/seebaermichi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null},"funding":{"github":"seebaermichi"}},"created_at":"2021-11-29T20:34:07.000Z","updated_at":"2024-03-11T12:50:13.000Z","dependencies_parsed_at":"2023-02-16T10:05:19.235Z","dependency_job_id":null,"html_url":"https://github.com/seebaermichi/monthly-calendar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"spatie/package-skeleton-php","purl":"pkg:github/seebaermichi/monthly-calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebaermichi%2Fmonthly-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebaermichi%2Fmonthly-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebaermichi%2Fmonthly-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebaermichi%2Fmonthly-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seebaermichi","download_url":"https://codeload.github.com/seebaermichi/monthly-calendar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebaermichi%2Fmonthly-calendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274935975,"owners_count":25376835,"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-13T02:00:10.085Z","response_time":70,"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","php"],"created_at":"2025-09-13T07:47:49.338Z","updated_at":"2025-09-13T07:47:53.044Z","avatar_url":"https://github.com/seebaermichi.png","language":"PHP","funding_links":["https://github.com/sponsors/seebaermichi"],"categories":[],"sub_categories":[],"readme":"# A package which provides a monthly calendar with days and events depending on given months and events.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/seebaermichi/monthly-calendar.svg?style=flat-square)](https://packagist.org/packages/seebaermichi/monthly-calendar)\n[![Tests](https://github.com/seebaermichi/monthly-calendar/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/seebaermichi/monthly-calendar/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/seebaermichi/monthly-calendar.svg?style=flat-square)](https://packagist.org/packages/seebaermichi/monthly-calendar)\n\nThis package returns a simple array with months, weeks and events depending on the months and events you provide.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require seebaermichi/monthly-calendar\n```\n\n## Usage\n\n```php\n// Will return an array with the given months and their weeks and days\n// weeks will start with Monday\n$monthlyCalendar = new Seebaermichi\\MonthlyCalendar(['December 2021', 'January 2022']);\n$calendar = $monthlyCalendar-\u003egetCalendar();\n\n// Will return an array with the given months and their weeks and days\n// weeks will start with Sunday\n$monthlyCalendar = new Seebaermichi\\MonthlyCalendar(['February 1989', 'March 1989'], 'Sun');\n$calendar = $monthlyCalendar-\u003egetCalendar();\n\n// Provide simple array of events and event label to get related days labeled\n// First of December will have an event attribute 'birthday'\n$monthlyCalendar = new Seebaermichi\\MonthlyCalendar(['December 2021']);\n$calendar = $monthlyCalendar-\u003egetCalendar(['2021-12-01'], 'birthday');\n\n// Provide array of events with detailed data to get related days labeled\n// 6th of March 2023 will have an events array including the given data\n$monthlyCalendar = new Seebaermichi\\MonthlyCalendar(['December 2021']);\n$givenEvents = [\n    [\n        'datetime' =\u003e '2023-06-03 10:00',\n        'label' =\u003e 'meeting',    \n    ],\n    [\n        'datetime' =\u003e '2023-06-03 13:00',\n        'label' =\u003e 'lunch',    \n    ],\n];\n$calendar = $monthlyCalendar-\u003egetCalendar($givenEvents, '', 'Y-m-d H:i');\n\n// Get only weekdays array with optional $startWith day\n$weekdays = Seebaermichi\\MonthlyCalendar::weekdays(); // ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n$weekdays = Seebaermichi\\MonthlyCalendar::weekdays('Sun'); // ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Michael Becker](https://github.com/seebaermichi)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebaermichi%2Fmonthly-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseebaermichi%2Fmonthly-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebaermichi%2Fmonthly-calendar/lists"}