{"id":28917994,"url":"https://github.com/captainhook-git/plugin-composer","last_synced_at":"2025-07-18T05:08:14.709Z","repository":{"id":53176870,"uuid":"158790437","full_name":"captainhook-git/plugin-composer","owner":"captainhook-git","description":"A composer-Plugin to easily use CaptainHook","archived":false,"fork":false,"pushed_at":"2024-01-05T18:35:09.000Z","size":63,"stargazers_count":19,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"fluffy_hedgehog","last_synced_at":"2025-06-22T01:03:22.231Z","etag":null,"topics":["hacktoberfest"],"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/captainhook-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-11-23T06:31:47.000Z","updated_at":"2023-10-10T18:41:42.000Z","dependencies_parsed_at":"2024-01-05T19:37:49.906Z","dependency_job_id":"7adf4141-f84c-4d2b-bf97-8ff36b79738d","html_url":"https://github.com/captainhook-git/plugin-composer","commit_stats":{"total_commits":45,"total_committers":6,"mean_commits":7.5,"dds":0.2666666666666667,"last_synced_commit":"0a802aaf7742ef22b5cbccd586d99e16d9d23a39"},"previous_names":["captainhook-git/plugin-composer","captainhookphp/plugin-composer"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/captainhook-git/plugin-composer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainhook-git%2Fplugin-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainhook-git%2Fplugin-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainhook-git%2Fplugin-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainhook-git%2Fplugin-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/captainhook-git","download_url":"https://codeload.github.com/captainhook-git/plugin-composer/tar.gz/refs/heads/fluffy_hedgehog","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainhook-git%2Fplugin-composer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265703601,"owners_count":23814037,"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":["hacktoberfest"],"created_at":"2025-06-22T01:03:20.779Z","updated_at":"2025-07-18T05:08:14.693Z","avatar_url":"https://github.com/captainhook-git.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer-Plugin for [CaptainHook](https://github.com/captainhookphp/captainhook)\n\n## ⚠️ This package is deprecated ⚠️\n\nPlease use the [hook-installer](https://github.com/captainhookphp/hook-installer) package instead.\nThe only difference to this package is that it does NOT require `CaptainHook` by itself.\nThat gives you the opportunity to choose your installation method. You can either install the\nPHAR or the source code version with all its dependencies.\n\n```json\n{\n  \"require-dev\": {\n    \"captainhook/captainhook-phar\": \"^5.0\",\n    \"captainhook/hook-installer\": \"^1.0\"\n  }  \n}\n```\n\nor\n\n```json\n{\n  \"require-dev\": {\n    \"captainhook/captainhook\": \"^5.0\",\n    \"captainhook/hook-installer\": \"^1.0\"\n  }  \n}\n```\n\nor even use PHIVE to install the captain and just install the `hook-installer` plugin with composer.\n\n```json\n{\n  \"require-dev\": {\n    \"captainhook/hook-installer\": \"^1.0\"\n  },\n  \"extra\": {\n    \"captainhook\": {\n      \"exec\": \"tools/captainhook.phar\"\n    }\n  }\n}\n```\n\n[![Latest Stable Version](https://poser.pugx.org/captainhook/plugin-composer/v/stable.svg?v=1)](https://packagist.org/packages/captainhook/plugin-composer)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)](https://php.net/)\n[![Downloads](https://img.shields.io/packagist/dt/captainhook/plugin-composer.svg?v1)](https://packagist.org/packages/captainhook/plugin-composer)\n[![License](https://poser.pugx.org/captainhook/plugin-composer/license.svg?v=1)](https://packagist.org/packages/captainhook/plugin-composer)\n\nThis is a composer-plugin that makes sure your teammates install the git hooks. For more information visit its [Website](https://github.com/captainhookphp/captainhook).\n\n## Installation:\n\nAs this is a composer-plugin the preferred method is to use composer for installation.\n \n```bash\n$ composer require --dev captainhook/plugin-composer\n```\n\nEverything else will happen automagically.\n\n## Customize\n\nYou can set a custom name for your hook configuration.\nIf you want to use the PHAR release of `CaptainHook` you can configure the path to the PHAR file.\nAll extra config settings are optional and if you are using the default settings you do not have to \nconfigure anything to make it work.\n \n```json\n{\n  \"extra\": {\n    \"captainhook\": {\n      \"config\": \"hooks.json\",\n      \"exec\": \"tools/captainhook.phar\",\n      \"disable-plugin\": false\n    }    \n  }  \n}\n```\n\n## A word of warning\n\nIt is still possible to commit without invoking the hooks. \nSo make sure you run appropriate backend-sanity checks on your code!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainhook-git%2Fplugin-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptainhook-git%2Fplugin-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainhook-git%2Fplugin-composer/lists"}