NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2478 most downloaded on Packagist
Prefixes all PHP namespaces in a file or directory.
Latest stable
0.18.20
Last release 1 months ago
08 Oct 2026
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
75 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Scope interfaces implemented by enums
Remove the custom error handler
Normalize file paths for Windows compatibility
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Update to thecodingmachine/safe v3
Add PHP 8.4 support (#1086, #1100, #1105, #1090)
Handle symbols removed within PhpStorm's stubs
Throw more friendly exceptions when loading a configuration
Preserve heredoc/newdoc indentation
Introduce a new factory for SymbolsRegistry
scoper-autoload.php PHP 5.6 compatible (#1024)call_user_func_array() (#1028)### Features - Add support for Symfony 7 (#937) ### Misc - Upgrade to PHPUnit 10 (#938) - Add PHP 8.3 to the matrix
Revert "feat: Mark all declarations as internal (#882)"
Make it easier to serialize/unserialize a SymbolsRegistry
Update the Reflector with the ext-uv symbols
### Fixes - Update to Box 4.5.1
Fix the compatibility of the dumped autoload
Add an inspect command (#868, #876)
spl_autoload_register() singule parameter (#887)is_callable() calls (#888)call_user_func_array() (#889)Make scoper-autoload.php being compatible with PHP 5
### Misc - Update dependencies
Handle the case where the Composer InstalledVersions.php file is not present
humbug_phpscoper_expose_class class declaration (#831, #811)build directory instead of dist (#833)Remove composer/package-versions-deprecated
fix: Bump the Composer root version
Add a build to check dependencies for security vulnerabilities
This release is a another big release. It really aims at tackling some fundamental and long-standing issues that are preventing a 1.x release. The two main problems being:
This release is an RC as this brings significant changes that I would like to pay more attention to and evaluate or it will affect big users such as PHPUnit, PHPStan, Infection or Rector.
humbug_php_scoper_expose_class() to simplify the class alias declarations (#718)PatcherChain#getPatchers() as internal (#737)output-dir configuration option (#632)Configuration::withPatcher() factory (#749)ConfigurableScoper (#705)class_alias statements (#724)inspect-symbol command slowness (#755)i flag (#759)bamarni.foward-command to false (#703)Remove deprecated function calls
Fix inspect symbol command for internal functions
### Feature - Allow Box4 #676
### Features - Update dependencies
### Bugfix - Fix typo in option description (#669) ### Misc - Upgrade to FidryConsole 0.5.0
Fix dependencies incompatibilities
### Feature - Allow Symfony6
Add support for union and intersection types
files-whitelist by exclude-files (#651)Configuration::withPrefix() (#629)Fix GitHub Actions to publish the PHAR on release
Fix the CI to allow the PHAR to be published
whitelist has been deprecated in favour of the exclude-* and expose-* entries and will be removed in 0.17.0
files-whitelist has been renamed into exclude-fileswhitelist-global-constants has been renamed into expose-global-constantswhitelist-global-classes has been renamed into expose-global-classeswhitelist-global-functions has been renamed into expose-global-functionswhitelist has been deprecated in favour of the exclude-* and expose-* entries and will be removed in 0.17.0<hr/>
exclude-{namespaces, constants, classes, functions}whitelist-global-{constants, classes, functions} to expose-global-{constants, classes, functions} (#517)whitelist to expose-{namespaces, constants, classes, functions} (#519, #521, #522, #525, #526, #527, #553, #608)Not adding prefixes to names after use statements
Fix support of parent return type
### Features - Add PHP 8 support (#446) ### Bugfixes - Bump dependencies
Revert "Add versions to hot-patched symbols" but keep fixed Lexer
Update composer/package-versions-deprecated
Switch to GitHub Actions (#421, #422)
Update Reflector with PHP 7.4 & 8.0 symbols
Also check for interfaces and traits in existence checks
### Bugfixes - Fix group use bug
Fix compatibility with Composer 2 (#404, #398)
### Bugfixes - Fix naming resolution issue (#401) - Bump dependencies
### Bugfixes - Update dependencies
Fix scoping of PSR-4 locator services in Symfony
Add support for PHP 7.4 new features
Fix easy cases of date related functions
Add a guard before loading the whitelisted classes
Fix a check related to the GitHub API making the tests fail randomly
Update Reflector to account for missing symbols
Remove the deprecated create_scoper() function
Container class instead of relying on the ApplicationFactory (#322)get_php_scoper_version(): string similar to get_box_version(): string (#322)create_scoper() function (#322)Humbug\PhpScoper\Console\Configuration and make the parent Humbug\PhpScoper\Configuration final (#329)uniqid by bin2hex(random_bytes()) (#329)PhpParser classes under PhpParser\NamespaceStmt (#329)Fix the prefixing of returned string literals
Add zend_loader_file_encoded to the list of known internal functions
zend_loader_file_encoded to the list of known internal functions (#290)Fix whitelisting of constants used in defined() calls
defined() calls (#283)defined() and define() calls (#284)Fix scoping of PSR-0 based packages with global classes
Add support for the eval function
Whitelist functions as soon as they are used
Fix the composer root version being used
Allow usage of the whitelist-global-classes setting
whitelist-global-classes settingOne column per quarter.