forked from PHP Scoper Example™
ScopeWeaver is not affiliated with PHP Scoper Example. The name and any related trademarks are used solely for nominative descriptive purposes.
This repository provides a working example and methodology for prefixing PHP dependencies within a plugin or project. It is designed for PHP developers who need to bundle third-party libraries without causing version conflicts with other components in the same environment. The approach uses PHP-Scoper to rename namespaces, creating a self-contained, isolated package.
scoper.sh) that automates the entire process of fetching dependencies, applying prefixes, and generating a ready-to-use vendor_prefixed directory.composer.json requirements. This allows the final plugin to be installed via Composer without version constraints conflicting with the root project's dependencies.use statements.Version
Original
Updated
Version
Original
Updated
Version
Original
Updated