Answers.Body: <p>The <a href="https://github.com/eileenmcnaughton/nz.co.fuzion.omnipaymultiprocessor" rel="nofollow noreferrer">OmniPay extension</a> comes to mind as an extension built around a library.  Looking quickly, it seems like the sensible answer is "Use Composer".</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-17T22:49:23.150Z
Answers.Text: I like it. But I wonder if there's an easier way...
Answers.UserDisplayName: JohnFF
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-17T16:21:07.150Z
Answers.LastActivityDate: 2017-02-17T16:21:07.150Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I've seen the conversation at: <a href="https://forum.civicrm.org/index.php?topic=27981.0" rel="nofollow noreferrer">https://forum.civicrm.org/index.php?topic=27981.0</a>. But I was wondering if anyone had experienced successfully embedding a PHP library in an extension.</p>
  
  <p>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.</p>
  
Tags: <extension><php>
Title: PHP libraries in extensions
ThreadText: # PHP libraries in extensions
  
  (Asked by: username_0 on 2017-02-17)
  
  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.
  
  **Tags:** extension, php
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-02-17. Score: 1
  
  The [OmniPay extension](https://github.com/eileenmcnaughton/nz.co.fuzion.omnipaymultiprocessor) comes to mind as an extension built around a library. Looking quickly, it seems like the sensible answer is "Use Composer".
  
  > **Comments:**
  > **username_0**: I like it. But I wonder if there's an easier way...  
  
  ---
  
  