{"id":23337518,"url":"https://github.com/amansilla/git-hooks-composer-installer","last_synced_at":"2025-04-09T21:20:37.770Z","repository":{"id":56947443,"uuid":"61622416","full_name":"amansilla/git-hooks-composer-installer","owner":"amansilla","description":"This composer plugin helps you automate the installation git side hooks.","archived":false,"fork":false,"pushed_at":"2018-04-16T22:57:14.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T23:11:47.516Z","etag":null,"topics":["automation","composer","git","git-hooks","hook-manager","hooks","plugin"],"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/amansilla.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":"2016-06-21T09:51:23.000Z","updated_at":"2021-08-04T09:04:16.000Z","dependencies_parsed_at":"2022-08-21T03:10:29.246Z","dependency_job_id":null,"html_url":"https://github.com/amansilla/git-hooks-composer-installer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amansilla%2Fgit-hooks-composer-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amansilla%2Fgit-hooks-composer-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amansilla%2Fgit-hooks-composer-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amansilla%2Fgit-hooks-composer-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amansilla","download_url":"https://codeload.github.com/amansilla/git-hooks-composer-installer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248112361,"owners_count":21049645,"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":["automation","composer","git","git-hooks","hook-manager","hooks","plugin"],"created_at":"2024-12-21T02:18:18.086Z","updated_at":"2025-04-09T21:20:37.751Z","avatar_url":"https://github.com/amansilla.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Git Hooks Composer Installer\n===========================\n[![Build Status](https://travis-ci.org/amansilla/git-hooks-composer-installer.svg?branch=master)](https://travis-ci.org/amansilla/git-hooks-composer-installer)\n[![Build status](https://ci.appveyor.com/api/projects/status/j8x3uj96yeajf7qj/branch/master?svg=true)](https://ci.appveyor.com/project/amansilla/git-hooks-composer-installer/branch/master)\n[![Latest Stable Version](https://poser.pugx.org/ams/git-hooks-installer/v/stable)](https://packagist.org/packages/ams/git-hooks-installer)\n[![Total Downloads](https://poser.pugx.org/ams/git-hooks-installer/downloads)](https://packagist.org/packages/ams/git-hooks-installer)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/amansilla/git-hooks-composer-installer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/amansilla/git-hooks-composer-installer/?branch=master)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/c1015283-d2e4-49b6-8094-b3187873e50e/mini.png)](https://insight.sensiolabs.com/projects/c1015283-d2e4-49b6-8094-b3187873e50e)\n[![License](https://poser.pugx.org/ams/git-hooks-installer/license)](https://packagist.org/packages/ams/git-hooks-installer)\n\nLatest release: [1.0.0](https://packagist.org/packages/ams/git-hooks-installer#1.0.0)\n\nThis plugin helps you automate the installation git hooks using [composer](https://getcomposer.org/).\n\nInstallation\n------------\nJust run the following command:\n\n    $ composer require --dev ams/git-hooks-installer\n\nor if you prefer add the following to the `composer.json` file:\n\n    {\n        \"require-dev\": {\n            \"ams/git-hooks-installer\": \"^1.0\"\n        },\n        \"extra\": {\n            \"git-root-dir\": \".\"\n        }\n    }\n\nUsage\n-----\nWhen the git-hooks-composer installer is run, it only looks for git-hooks among your project dependencies. If your package\nis a git hook and you want it to be installed with composer automatically you'll need to define a `composer.json` as follows:\n\n    {\n        \"type\": \"git-hook\"\n    }\n    \n\u003caside class=\"warning\"\u003e\nThe git hooks scripts should be located in the package root directory.\n\u003c/aside\u003e\n\nCurrently are the following git hooks supported:\n* `applypatch-msg`\n* `pre-applypatch`\n* `post-applypatch`\n* `pre-commit`\n* `prepare-commit-msg`\n* `commit-msg`\n* `post-commit`\n* `pre-rebase`\n* `post-checkout`\n* `post-merge`\n* `pre-push`\n* `pre-auto-gc`\n* `post-rewrite`\n\nYou can find any additional information about the git hooks on the [git documentation] online.\n\nContribute\n----------\n\nContributions to are very welcome!\n\n* Report any bugs or issues you find on the [issue tracker].\n\nSupport\n-------\n\nIf you are having problems, send a mail to contact@amansilla.com or just write me [@flamingek] on Twitter.\n\nLicense\n-------\n\nAll contents of this package are licensed under the [MIT license].\n\n[issue tracker]: https://github.com/amansilla/git-hooks-composer-installer/issues\n[MIT license]: LICENSE\n[@flamingek]: https://twitter.com/flamingek\n[git documentation]: https://git-scm.com/docs/githooks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famansilla%2Fgit-hooks-composer-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famansilla%2Fgit-hooks-composer-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famansilla%2Fgit-hooks-composer-installer/lists"}