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

PhpCpd

The PhpCpd task will sniff your code for duplicated lines.

Composer

composer require --dev sebastian/phpcpd

Config

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

# grumphp.yml
grumphp:
    tasks:
        phpcpd:
            directory: ['.']
            exclude: ['vendor']
            fuzzy: false
            min_lines: 5
            min_tokens: 70
            triggered_by: ['php']

directory

Default: [.]

With this parameter you can define which directories you want to run phpcpd in (must be relative to cwd).

exclude

Default: [vendor]

With this parameter you will be able to exclude one or multiple directories from code analysis (must be relative to directory).

fuzzy

Default: false

With this parameter you will be able to fuzz variable names.

min_lines

Default: 5

With this parameter you will be able to set minimum number of identical lines.

min_tokens

Default: 70

With this parameter you will be able to set minimum number of identical tokens.

triggered_by

Default: [php]

This is a list of extensions to be sniffed.

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