{"repo":"typisttech/imposter","free":true,"listed":false,"github":"https://github.com/typisttech/imposter","clone":"git clone https://github.com/typisttech/imposter.git","description":"Wrapping all composer vendor packages inside your own namespace. Intended for WordPress plugins","language":"PHP","stars":110,"topics":["composer","wordpress-development","monkey-patching","namespace","php","devtools","wordpress"],"license":"MIT","category":"dev-tools","readme_excerpt":"Imposter Wrapping all composer vendor packages inside your own namespace. Intended for WordPress plugins. Built with ♥ by Typist Tech --- Imposter is an open source project and completely free to use. However, the amount of effort needed to maintain and develop new features is not sustainable without proper financial backing. If you have the capability, please consider donating using the links below: --- Wrapping all composer vendor packages inside your own namespace. Intended for WordPress plugins. Why? Because of the lack of dependency management in WordPress, if two plugins bundled conflicting versions of the same package, hard-to-reproduce bugs arise. Monkey patching composer vendor packages, wrapping them inside your own namespace is a less-than-ideal solution to avoid such conflicts. See: - A Narrative of Using Composer in a WordPress Plugin - A Warning About Using Composer With WordPress - Plugin Dependencies (Yet Another Plugin Dependencies Ticket) Install If you want to hook Imposter into composer command events, install Imposter Plugin instead. See: How can I integrate Imposter with composer? Installation should be done via composer, details of how to install composer can be found at https://getcomposer.org/. Config In your composer.json : extra.imposter.namespace Required String This is the namespace prefix to be added to vendor packages. extra.imposter.excludes Optional Array of strings Vendor packages which needs to be excluded from namespace prefixing. All compo","default_branch":null,"files":null,"tree":[],"storefront":"/r/typisttech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/typisttech/imposter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}