{"id":18626503,"url":"https://github.com/afbora/kirby-template-hooks","last_synced_at":"2025-04-11T05:31:04.208Z","repository":{"id":35050678,"uuid":"200796370","full_name":"afbora/kirby-template-hooks","owner":"afbora","description":"Enable page and file template hooks for Kirby 3","archived":false,"fork":false,"pushed_at":"2023-08-10T18:07:24.000Z","size":11,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T09:47:51.384Z","etag":null,"topics":["hooks","kirby","kirby-cms","kirby-extension","kirby-plugin","kirby3-plugin"],"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/afbora.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://a.paddle.com/v2/click/1129/52467?link=1170"]}},"created_at":"2019-08-06T07:07:54.000Z","updated_at":"2024-09-12T17:36:51.000Z","dependencies_parsed_at":"2024-11-07T04:40:35.854Z","dependency_job_id":"58ddce93-314b-4173-b90e-3b72a7005980","html_url":"https://github.com/afbora/kirby-template-hooks","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"858b97cd2119844fc00097ee5e7e49c93e53d80b"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbora%2Fkirby-template-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbora%2Fkirby-template-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbora%2Fkirby-template-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afbora%2Fkirby-template-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afbora","download_url":"https://codeload.github.com/afbora/kirby-template-hooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247959798,"owners_count":21024842,"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":["hooks","kirby","kirby-cms","kirby-extension","kirby-plugin","kirby3-plugin"],"created_at":"2024-11-07T04:38:08.886Z","updated_at":"2025-04-11T05:31:03.945Z","avatar_url":"https://github.com/afbora.png","language":"PHP","funding_links":["https://a.paddle.com/v2/click/1129/52467?link=1170"],"categories":[],"sub_categories":[],"readme":"# Kirby Template Hooks\n\nKirby template hooks allow you to manage hooks for page and file templates more easily.\n\n## Installation\n\n### Installation with composer\n\n```ssh\ncomposer require afbora/kirby-template-hooks\n```\n\n### Add as git submodule\n\n```ssh\ngit submodule add https://github.com/afbora/kirby-template-hooks.git site/plugins/kirby-template-hooks\n```\n\n## Usage\n\n### Pages\n\n**Usage:** `page.TEMPLATE_NAME.ACTION_NAME:before/after`\n\n```php\n\u003c?php\n\nreturn [\n    'hooks' =\u003e [\n        'page.product.update:after' =\u003e function ($newPage, $oldPage) {\n            // your code goes here\n        }\n    ]\n];\n\n```\n\n### Files\n\n**Usage:** `file.TEMPLATE_NAME.ACTION_NAME:before/after`\n\n```php\n\u003c?php\n\nreturn [\n    'hooks' =\u003e [\n        'file.cover.update:after' =\u003e function ($newFile, $oldFile) {\n            // your code goes here\n        }\n    ]\n];\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafbora%2Fkirby-template-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafbora%2Fkirby-template-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafbora%2Fkirby-template-hooks/lists"}