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

Grumphp Laravel Package

phpro/grumphp

GrumPHP is a Composer plugin that installs Git hooks to run quality checks on every commit. It executes configured tasks like tests and linters, blocks failing commits, and helps teams enforce coding standards and best practices automatically.

View on GitHub
Deep Wiki
Context7

Symfony Console

Run a symfony console command.

Requirements

This task requires a Symfony application with console component.

Config

The task lives under the symfony_console namespace and has following configurable parameters:

# grumphp.yml
grumphp:
    tasks:
        symfony_console:
            bin: "./bin/console"
            command: [ "lint:container", "-vvv" ]
            ignore_patterns: [],
            whitelist_patterns: [],
            triggered_by: ['php', 'yml', 'xml'],
            run_always: false

Parameters

bin

Default: ./bin/console

Specify the path to the Symfony Console script.

command

Default: []

Specify the symfony command with defined options and arguments.
Verify the installed console component version for available commands ./bin/console list

ignore_patterns

Default: []

This is a list of file patterns that will be ignored by the Symfony console task. Leave this option blank to run the task for all files defined in the whitelist_patterns and or triggered_by extensions.

whitelist_patterns

Default: []

This is a list of regex patterns that will filter files to validate. With this option you can skip files like tests. This option is used in relation with the parameter triggered_by. For example: whitelist files in src/FolderA/ and src/FolderB/ you can use

whitelist_patterns:
    - /^src\/FolderA\/(.*)/
    - /^src\/FolderB\/(.*)/

triggered_by

Default: [php, yml, xml]

This option will specify which file extensions will trigger the Symfony console task. By default, altering a php, yml, xml file will trigger the task. You can overwrite this option to whatever filetype you want to validate!

run_always

Default: false

If this is set to true the Symfony console task will be executed on every commit, regardless of any modified files.

Multiple Console command tasks

Run the same task twice with different configuration

Specific running multiple symfony console commands:

# grumphp.yml
grumphp:
  lint-container:
      command: [ "lint:container", "-vvv"]
      metadata:
        task: symfony_console
  lint-yaml:
      command: [ "lint:yaml", "path/to/yaml"]
      metadata:
        task: symfony_console
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.
cadot.eu/make
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky