Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Plugin Composer Laravel Package

captainhook/plugin-composer

Deprecated Composer plugin for CaptainHook that auto-installs Git hooks for your team. Configure hook file name, PHAR path, or disable via composer.json “extra”. Use captainhook/hook-installer instead for flexible PHAR/source installs.

View on GitHub
Deep Wiki
Context7

Composer-Plugin for CaptainHook

⚠️ This package is deprecated ⚠️

Please use the hook-installer package instead. The only difference to this package is that it does NOT require CaptainHook by itself. That gives you the opportunity to choose your installation method. You can either install the PHAR or the source code version with all its dependencies.

{
  "require-dev": {
    "captainhook/captainhook-phar": "^5.0",
    "captainhook/hook-installer": "^1.0"
  }  
}

or

{
  "require-dev": {
    "captainhook/captainhook": "^5.0",
    "captainhook/hook-installer": "^1.0"
  }  
}

or even use PHIVE to install the captain and just install the hook-installer plugin with composer.

{
  "require-dev": {
    "captainhook/hook-installer": "^1.0"
  },
  "extra": {
    "captainhook": {
      "exec": "tools/captainhook.phar"
    }
  }
}

Latest Stable Version Minimum PHP Version Downloads License

This is a composer-plugin that makes sure your teammates install the git hooks. For more information visit its Website.

Installation:

As this is a composer-plugin the preferred method is to use composer for installation.

$ composer require --dev captainhook/plugin-composer

Everything else will happen automagically.

Customize

You can set a custom name for your hook configuration. If you want to use the PHAR release of CaptainHook you can configure the path to the PHAR file. All extra config settings are optional and if you are using the default settings you do not have to configure anything to make it work.

{
  "extra": {
    "captainhook": {
      "config": "hooks.json",
      "exec": "tools/captainhook.phar",
      "disable-plugin": false
    }    
  }  
}

A word of warning

It is still possible to commit without invoking the hooks. So make sure you run appropriate backend-sanity checks on your code!

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport