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

Add external libraries that use Composer #595

Open
jrstarenlard opened this issue Jun 6, 2024 · 1 comment
Open

Add external libraries that use Composer #595

jrstarenlard opened this issue Jun 6, 2024 · 1 comment

Comments

@jrstarenlard
Copy link

Hello,

What would be the correct way to add other libraries that use composer? Like for example https://github.com/Bacon/BaconQrCode or any other.

Thanks for the help

@jrstarenlard
Copy link
Author

I share my approach and would appreciate your opinion to know if this is the best in terms of performance.

After installing composer I added the loader in the load_dependencies() function. In the class-admin.php and class-public classes, I reference the external libraries and it seems to work fine and they are loaded from the vendor.

Is it the right way? Is there a better way to proceed in this regard?

Thank you!

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