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

Phpmnd Laravel Package

povils/phpmnd

PHPMND detects magic numbers in PHP code to improve readability and maintainability. Flags numeric literals that should be constants (0 and 1 ignored by default). Install via Composer and run vendor/bin/phpmnd locally or globally in CI and dev workflows.

View on GitHub
Deep Wiki
Context7
v3.6.0
  • Test against PHP 8.4
  • Support phpunit/php-timer 8
v3.5.0
  • Support phpunit/php-timer 7.0
  • Add composer-runtime-api:"^2.0" dependency to be able to get application version automatically
v3.4.1
  • Add test to verify that Application::VERSION match the latest git tag
v3.4.0
  • Add PHP-Parser 5 support
v3.3.0
  • Test against PHP 8.3
  • Add Symfony 7 support
  • Micro optimization to reduce array_merge calls
v3.2.0
  • Test against PHP 8.2
  • Fix for missing tput binary by
v3.1.0
  • Allow phpunit/php-timer
v3.0.1
  • Fix version number
v3.0.0
  • Support symfony 6
  • PHP 8.1 support
  • Remove --non-zero-exit-on-violation option
  • Drop php <7.4 support, symfony <4.4, add php 8.1 to pipeline
v2.5.0
  • Update php-parallel-lint/php-console-highlighter to get rid of abandoned dependency
  • Run PHPMND against codebase
  • Improve GitHub Actions pipelines
v2.4.0
  • Add GA instead of TravisCI
  • Support PHP 8
v2.3.0
  • Support PHP 7.3 and PHP 7.4
  • Update dependencies
v2.1.0
  • Check magic numbers in constant arrays.
  • Catch array[magic_number]
  • Whitelist option. Link to a file containing filenames to search
v2.2.0
  • Add default ignore functions (intval, strval and floatval)
  • Fix negative number whitelisting
  • Ignore the negative value if the scalar does not have a value field
  • Allow multiple files and directories
v2.0.0
  • Update dependencies. Required PHP 7.1
  • Add support for negative numbers.
  • Ignore '0' and '1' by default.
  • Add XML report output
  • Option for allowing array mapping when using array extension
  • Option for including numeric strings
v1.1.1
  • Fix --non-zero-exit-on-violation option.
v1.1.0
  • Add --non-zero-exit-on-violation option to return non zero exit code when there are magic number in the codebase.
  • Add --hint option suggest replacements for magic numbers.
  • Add more flexibility to extensions. 'all' option and possibility for removal with minus sign.
  • Add --suffixes option.
  • Add PHAR build support with Box.
v1.0.3

Added

  • Add --strings option to include strings literals in code analysis.
  • Add --ignore-strings option to ignore strings when using the strings option.
v1.0.2

Added

  • Add --exclude-path option.
  • Add --exclude-file option.
  • Add --ignore-funcs option.
  • Add total magic number count in output result.
v1.0.1

Fixed

  • Ignore magic numbers in constants when there is operation.
v1.0.0
  • Initial release.
v3.7.0
  • Support Symfony 8
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
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