{"id":18947332,"url":"https://github.com/arif-rh/git-hooks","last_synced_at":"2026-03-26T22:30:20.185Z","repository":{"id":62486869,"uuid":"258519320","full_name":"arif-rh/git-hooks","owner":"arif-rh","description":"Encourage development teams to use better coding style using pre-commit git hooks","archived":false,"fork":false,"pushed_at":"2020-04-24T15:16:51.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T15:53:13.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/arif-rh.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}},"created_at":"2020-04-24T13:25:28.000Z","updated_at":"2020-04-24T15:15:25.000Z","dependencies_parsed_at":"2022-11-02T11:00:25.912Z","dependency_job_id":null,"html_url":"https://github.com/arif-rh/git-hooks","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arif-rh%2Fgit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arif-rh%2Fgit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arif-rh%2Fgit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arif-rh%2Fgit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arif-rh","download_url":"https://codeload.github.com/arif-rh/git-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239946875,"owners_count":19723014,"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":[],"created_at":"2024-11-08T13:09:40.260Z","updated_at":"2026-03-26T22:30:20.128Z","avatar_url":"https://github.com/arif-rh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Hooks\n\nEncourage development teams to use better coding style:\n\n- PHP Linter will help to avoid commit with invalid script\n- Encourage team to have same coding standard\n\n## Features\n\nThis package will install pre-commit hooks to the repository to encourage team using same coding standard.\n\n## Installation\n\n1. `composer require arif-rh/git-hooks`\n2. in the main `composer.json` add these scripts:\n\n````\n \"scripts\": {\n        \"post-install-cmd\": [\n            \"Arifrh\\\\GitHooks\\\\PreCommit::PSR2\" // or CI4\n        ],\n\t\t\"post-update-cmd\": [\n            \"Arifrh\\\\GitHooks\\\\PreCommit::PSR2\" // or CI4\n        ]\n    }\n````\nNote: \n- use `PSR2` if you want to use PSR2 Standard, and use `CI4` if you want to use CodeIgniter4 standard ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farif-rh%2Fgit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farif-rh%2Fgit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farif-rh%2Fgit-hooks/lists"}