Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix Composer packages #191

Open
benjaminpick opened this issue Jan 21, 2022 · 3 comments
Open

Prefix Composer packages #191

benjaminpick opened this issue Jan 21, 2022 · 3 comments

Comments

@benjaminpick
Copy link
Member

https://developer.yoast.com/blog/safely-using-php-dependencies-in-the-wordpress-ecosystem/

@benjaminpick
Copy link
Member Author

@benjaminpick
Copy link
Member Author

@benjaminpick
Copy link
Member Author

(Note from Diego, author of Aelia plugins)

For what concerns the namespacing of the dependency, I would suggest to use Mozart instead of PHP Scoper. It requires a simple configuration, which could be as simple as the following:

"mozart": {
"dep_namespace": "YellowTree\Dependencies\",
"dep_directory": "/dependencies/packages/",
"classmap_directory": "/dependencies/classes/",
"classmap_prefix": "YellowTree_",
"packages": [
"geoip2/geoip2",
"maxmind-db/reader",
"maxmind/web-service-common"
],
"delete_vendor_directories": true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant