{"id":15027944,"url":"https://github.com/a-schild/pdfcalendarbuilder","last_synced_at":"2026-01-17T21:59:52.719Z","repository":{"id":56938791,"uuid":"178083034","full_name":"a-schild/pdfcalendarbuilder","owner":"a-schild","description":"PHP library to generate pdf with monthly calendars and autosizing","archived":false,"fork":false,"pushed_at":"2026-01-15T18:38:32.000Z","size":303,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T20:49:04.145Z","etag":null,"topics":["calendar","churchtools","library","month","pdf","php","php81"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-schild.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-27T22:19:50.000Z","updated_at":"2026-01-15T18:13:40.000Z","dependencies_parsed_at":"2024-10-12T13:00:38.481Z","dependency_job_id":"1015f4db-3bee-4c06-a6bb-f908474caf94","html_url":"https://github.com/a-schild/pdfcalendarbuilder","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"c1b01ec5ac0999ec986d6b05f63d8c02dea2476c"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/a-schild/pdfcalendarbuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-schild%2Fpdfcalendarbuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-schild%2Fpdfcalendarbuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-schild%2Fpdfcalendarbuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-schild%2Fpdfcalendarbuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-schild","download_url":"https://codeload.github.com/a-schild/pdfcalendarbuilder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-schild%2Fpdfcalendarbuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28519259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","churchtools","library","month","pdf","php","php81"],"created_at":"2024-09-24T20:07:20.213Z","updated_at":"2026-01-17T21:59:52.713Z","avatar_url":"https://github.com/a-schild.png","language":"PHP","readme":"# PDFCalendarBuilder\nGenerate pdf month calendars with autoscaling/sizing\n\nWith the addMonth() introduced in 1.0.8 you can generate a PDF containing\nmultiple months. Each month will be on it's own page then.\n\n## Unique features\n- The class can try to put everything on one page\n- In an normal calendar, all rows have the same height\n- This library can shrink/expand rows, so everything fits on one page.\nSee setResizeRowHeightsIfNeeded(true/false);\n\n- If this is not enough, it can reduce the font size until everything fits on one page.\nSee setShrinkFontSizeIfNeeded(true/false);\n\n## Usage:\nIn your composer.json add the dependency:\n\n```\n    \"require\": {\n        \"php\": \"^8.1\",\n        \"a-schild/pdfcalendarbuilder\": \"\u003e=1.0.12\",\n    }\n```\n### Creating the class and generate calendar\n```\n$cal = new aschild\\PDFCalendarBuilder\\CalendarBuilder(1, 2019, \"Calendar title\", true, 'mm', 'A4');\n$cal-\u003estartPDF();\n$cal-\u003eaddEntry($startDate, $endDate, \"Entry 1\", \"#000000\", \"#fffff\");\n$cal-\u003ebuildCalendar();\n$cal-\u003eOutput(\"calendar.pdf\", \"I\");\n```\n\n### Creating the class and generate calendar for 3 months (Required version 1.0.7 or higher)\n```\n$cal = new aschild\\PDFCalendarBuilder\\CalendarBuilder(1, 2019, \"Calendar title Jan\", true, 'mm', 'A4');\n$cal-\u003estartPDF();\n$cal-\u003eaddEntry($startDate1, $endDate1, \"Entry 1\", \"#000000\", \"#ffffff\");\n$cal-\u003ebuildCalendar();\n$cal-\u003eaddMonth(2, 2019, \"Title for Feb\");\n$cal-\u003eaddEntry($startDate2, $endDate2, \"Entry 1\", \"#000000\", \"#ffffff\");\n$cal-\u003ebuildCalendar();\n$cal-\u003eaddMonth(3, 2019, \"Title for March\");\n$cal-\u003eaddEntry($startDate3, $endDate3, \"Entry 1\", \"#000000\", \"#ffffff\");\n$cal-\u003ebuildCalendar();\n$cal-\u003eOutput(\"calendar.pdf\", \"I\");\n```\n\n## Examples\n- Empty calendar, no entries, just a month grid\n  ![Empty calendar ](doc/img/calendar-empty.png)\n- Overflowing boxes in normal libraries\n  ![Box overflow in normal calendars](doc/img/calendar-overflow.png)\n- Resize row heights to adapt space usage\n  ![Resize rows height](doc/img/calendar-resize-row2.png)\n- Resize row heights and shrink font size if needed\n  ![Resize rows and shrink font](doc/img/calendar-resize-rows-shrink-fontsize.png)\n- Day spanning events\n  ![Events which span days](doc/img/calendar-day-spanning.png)\n\n(C) 2019 - 2025 A.Schild\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-schild%2Fpdfcalendarbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-schild%2Fpdfcalendarbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-schild%2Fpdfcalendarbuilder/lists"}