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.1

What's Changed

Full Changelog: https://github.com/povils/phpmnd/compare/v3.6.0...v3.6.1

v3.6.0
v3.5.0

What's Changed

Full Changelog: https://github.com/povils/phpmnd/compare/v3.4.1...v3.5.0

v3.4.1

What's Changed

Full Changelog: https://github.com/povils/phpmnd/compare/v3.4.0...v3.4.1

v3.4.0
v3.3.0

What's Changed

Full Changelog: https://github.com/povils/phpmnd/compare/v3.2.0...v3.3.0

v3.2.0
v3.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/povils/phpmnd/compare/v3.0.1...v3.1.0

v3.0.1

What's Changed

Full Changelog: https://github.com/povils/phpmnd/compare/v3.0.0...v3.0.1

v3.0.0

What's Changed

Full Changelog: https://github.com/povils/phpmnd/compare/v2.5.0...v3.0.0

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
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.1.0
  • Check magic numbers in constant arrays.
  • Catch array[magic_number]
  • Whitelist option. Link to a file containing filenames to search
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 exit code
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
  • Add --strings option to include strings literals in code analysis.
  • Add --ignore-strings option to ignore strings when using strings opton.
v1.0.2
  • Add --exclude-path option
  • Add --exclude-name option
  • Add --ignore-funcs option
  • Add total magic number count in output result
v1.0.1
  • Ignore Magic numbers in constants when there is operation. Example
const HOUR = 60 * 60;
  • Minor style fixes
v1.0.0
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.
phpshko/laravel-livewire-depdrop
larasell-dev/larasell
calliostro/spotify-bundle
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer