I've seen the conversation at: https://forum.civicrm.org/index.php?topic=27981.0. But I was wondering if anyone had experienced successfully embedding a PHP library in an extension.

Specifically I want to include the PHP Simple DOM Parser. Any instructions/guidance? That contains a simple php file and a folder of files that it uses.


The OmniPay extension comes to mind as an extension built around a library. Looking quickly, it seems like the sensible answer is "Use Composer".

  • I like it. But I wonder if there's an easier way... – JohnFF Feb 17 '17 at 22:49

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.