Registry / build-tool / humbug-php-scoper

humbug-php-scoper

JSON →
library0.18.19phppackagistunverified

Prefixes all PHP namespaces in a file or directory to avoid conflicts.

composer require humbug/php-scoper
INSTALL
IMPORT
SIG · HUMBUG-PHP-SCOPER
H
humbug-php-scoper
build-toolphpv0.18.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Scoper
use Humbug\PhpScoper\Scoper;

Scope all PHP files from src/ to build/ with a prefix.

use Humbug\PhpScoper\Scoper; $scoper = new Scoper(); $scoper->scope('src/', 'build/');
Debug
Known issues
gotchaMay break code that relies on dynamic class names or string references.
fix
Use the patcher to handle dynamic references.
affects: >=0.15.0
Upgrade
Version history
0.18.19latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
humbug-php-scoper — pip install humbug-php-scoper · libregistry