php-scoper
php-scoper copied to clipboard
🔨 Prefixes all PHP namespaces in a file/directory to isolate the code bundled in PHARs.
## Feature Request When using custom patchers, there's currently no access to the fully resolved configuration, nor any of the utilities that PHP Scoper uses to determine if a function...
Bumps the dependencies group in /composer-root-version-checker with 1 update: [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize). Updates `ergebnis/composer-normalize` from 2.46.0 to 2.47.0 Release notes Sourced from ergebnis/composer-normalize's releases. 2.47.0 What's Changed Enhancement: Update schema.json by @ergebnis-bot...
## Bug report | Question | Answer | ------------| --------------- | PHP-Scoper version | The one in 4.6.5@0964604 2025-03-02 18:34:04 UTC | PHP version | 8.2.28 | Platform with version...
## Bug report | Question | Answer | ------------| --------------- | PHP-Scoper version | 0.18.17 | PHP version | 8.3.16 | Platform with version | macOS Sequoia 15.3.1 We have...
### Discussed in https://github.com/humbug/php-scoper/discussions/1101 Originally posted by **hirasso** January 3, 2025 Basically the title says it all. Should I require `vendor/autoload.php`, `vendor/scoper-autoload.php`, or both in my entry file? I couldn't...
## Feature Request ### The Problem php-scoper currently scopes already-scoped packages again. Example: ```php // scoper.inc.php return [ 'prefix' => 'RH\AdminUtils\Scoped', ]; ``` The result in psr/log after the first...
## Feature Request Currently, quite some line breaks are being stripped from scoped code. This makes that code hard to read (I'm also scoping my own package's main code). If...
I want to `exclude-classes` for all the native WordPress classes by Regex? I also tried the given way, but it's not working Tried these ways ``` exclude-classes => ['/^WP_/'], //...