Open benjaminpick opened 2 years ago
(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/", "classmapprefix": "YellowTree", "packages": [ "geoip2/geoip2", "maxmind-db/reader", "maxmind/web-service-common" ], "delete_vendor_directories": true }
https://developer.yoast.com/blog/safely-using-php-dependencies-in-the-wordpress-ecosystem/