povils/phpmnd
A tool to detect Magic numbers in codebase
v3.6.1
6.1M downloads/mo
#2360 most downloaded on Packagist
povils/phpmnd
What this package is like to depend on
Last release 6 months ago
21 Feb 2026
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 22 of 22 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
22 releases · first in 2017
1 release in the last 12 months
see the full history below
Release timeline
22 releases · Apr 2017 to Feb 2026Releases
latest 22-
v3.6.121 Feb 2026Release notes
Open source →What's Changed
- Add Symfony 8 support by @sidz in #191
- Test against PHP 8.5 by @sidz in #192
- Add phpunit/php-timer 9 support by @sidz in #194
Full Changelog: v3.6.0...v3.6.1
-
v3.6.015 Mar 2025 -
v3.5.022 May 2024Release notes
Open source →What's Changed
- Add phpunit/php-timer: ^7.0 support by @sidz in #179
- Bump version by @exussum12 in #180
- Get application version from composer.lock by @sidz in #176
Full Changelog: v3.4.1...v3.5.0
-
v3.4.102 Mar 2024Release notes
Open source →What's Changed
- Add test to verify that
Application::VERSIONmatch the latest git tag by @llaville in #175 - Bump version to 3.4.1 by @sidz in #177
Full Changelog: v3.4.0...v3.4.1
- Add test to verify that
-
v3.4.008 Jan 2024Release notes
Open source → -
v3.3.024 Nov 2023Release notes
Open source →What's Changed
- Test against PHP 8.3 by @sidz in #169
- Add Symfony 7 support by @sidz in #171
- Micro optimization to reduce array_merge calls by @sidz in #170
- Test against lowest allowed dependencies by @kubawerlos in #173
- Update CHANGELOG, increase application version by @sidz in #172
Full Changelog: v3.2.0...v3.3.0
-
v3.2.014 Jul 2023Release notes
Open source →What's Changed
- Test against PHP 8.2 by @sidz in #167
- Fix for missing tput binary by @exussum12 in #159
Full Changelog: v3.1.0...v3.2.0
-
v3.1.030 Mar 2023 -
v3.0.118 Aug 2022Release notes
Open source →What's Changed
- Add symfony/flex to allow-plugins by @sidz in #160
- Update release number by @exussum12 in #163
Full Changelog: v3.0.0...v3.0.1
-
v3.0.006 Jul 2022Release notes
Open source →What's Changed
- Support symfony 6 by @sidz in #149
- PHP 8.1 support by @exussum12 in #134
- Remove --non-zero-exit-on-violation option by @sidz in #152
- Drop php <7.4 support, symfony <4.4, add php 8.1 to pipeline by @sidz in #151
Full Changelog: v2.5.0...v3.0.0
-
v2.5.012 Dec 2021Release notes
Open source →- Update php-parallel-lint/php-console-highlighter to get rid of abandoned dependency
- Run PHPMND against codebase
- Improve GitHub Actions pipelines
-
v2.4.027 Feb 2021 -
v2.3.003 May 2020 -
v2.2.012 Jan 2020Release notes
Open source →- 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.027 Jan 2019Release notes
Open source →- Check magic numbers in constant arrays.
- Catch array[magic_number]
- Whitelist option. Link to a file containing filenames to search
-
v2.0.017 Mar 2018Release notes
Open source →- 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.116 May 2017 -
v1.1.015 May 2017Release notes
Open source →- Add
--non-zero-exit-on-violationoption to return non zero exit code when there are magic number in the codebase. - Add
--hintoption suggest replacements for magic numbers. - Add more flexibility to extensions. 'all' option and possibility for removal with minus sign.
- Add
--suffixesoption. - Add PHAR build support with Box.
- Add
-
v1.0.327 Apr 2017Release notes
Open source →Added
- Add
--stringsoption to include strings literals in code analysis. - Add
--ignore-stringsoption to ignore strings when using thestringsoption.
- Add
-
v1.0.225 Apr 2017Release notes
Open source →Added
- Add
--exclude-pathoption. - Add
--exclude-fileoption. - Add
--ignore-funcsoption. - Add total magic number count in output result.
- Add
-
v1.0.121 Apr 2017 -
v1.0.020 Apr 2017