{"id":21963820,"url":"https://github.com/agence-adeliom/lumberjack-hooks","last_synced_at":"2026-01-31T10:02:33.510Z","repository":{"id":58847761,"uuid":"532892187","full_name":"agence-adeliom/lumberjack-hooks","owner":"agence-adeliom","description":"[READ-ONLY] Register WordPress hooks, filters and shortcodes with PHP Attributes into Lumberjack","archived":false,"fork":false,"pushed_at":"2024-06-20T16:15:22.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"1.x","last_synced_at":"2025-10-26T08:10:16.836Z","etag":null,"topics":["hooks","lumberjack","php-attributes","timber","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/agence-adeliom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-05T12:31:42.000Z","updated_at":"2022-09-05T13:28:09.000Z","dependencies_parsed_at":"2025-02-17T09:44:41.135Z","dependency_job_id":"1dbccc30-e4d2-48d8-9000-8e58d8672f01","html_url":"https://github.com/agence-adeliom/lumberjack-hooks","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/agence-adeliom/lumberjack-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Flumberjack-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Flumberjack-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Flumberjack-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Flumberjack-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agence-adeliom","download_url":"https://codeload.github.com/agence-adeliom/lumberjack-hooks/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agence-adeliom%2Flumberjack-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28937814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T08:53:31.997Z","status":"ssl_error","status_checked_at":"2026-01-31T08:51:38.521Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["hooks","lumberjack","php-attributes","timber","wordpress"],"created_at":"2024-11-29T11:43:44.751Z","updated_at":"2026-01-31T10:02:33.496Z","avatar_url":"https://github.com/agence-adeliom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [READ-ONLY] Lumberjack Hooks\n\nRegister WordPress hooks, filters and shortcodes with PHP Attributes\n\n## Requirements\n\n* PHP 8.0 or greater\n* Composer\n* Lumberjack\n\n## Installation\n\n```bash\ncomposer require agence-adeliom/lumberjack-hooks\n\n# Copy the configuration file\ncp vendor/agence-adeliom/lumberjack-hooks/config/hooks.php web/app/themes/YOUR_THEME/config/hooks.php\n```\n\n#### Register the service provider into web/app/themes/YOUR_THEME/config/app.php\n\n```php\n'providers' =\u003e [\n    ...\n    \\Adeliom\\Lumberjack\\Hooks\\HookProvider::class\n]\n```\n\n## Usage\n\nCreate your hook class :\n\n```php\n\u003c?php\n\nnamespace App\\Hooks;\n\nuse Adeliom\\Lumberjack\\Hooks\\Models\\Action;\nuse Adeliom\\Lumberjack\\Hooks\\Models\\Filter;\n\nclass MyClass\n{\n\n    #[Action(tag: \"init\")]\n    public function doSomethingAtInit()\n    {\n        // do something\n    }\n    \n    #[Filter(tag: \"enter_title_here\")]\n    public function alterEnterTitleHere()\n    {\n        // do something\n    }\n}\n```\n\nRegister the class into your config file `web/app/themes/YOUR_THEME/config/hooks.php` :\n\n```php\nreturn [\n    'register' =\u003e [\n        ...\n        App\\Hooks\\MyClass::class\n    ],\n];\n```\n\nAnd you're done!\n\n# API\n\n```php\n#[Action(tag: \"the hook name\", priority: 1, accepted_args: 1)]\n#[Filter(tag: \"the filter name\", priority: 1, accepted_args: 1)]\n#[Shortcode(tag: \"the shortcode code\", priority: 1, accepted_args: 1)]\n```\n\n## License\nLumberjack Hooks is released under [the MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagence-adeliom%2Flumberjack-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagence-adeliom%2Flumberjack-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagence-adeliom%2Flumberjack-hooks/lists"}