Title: Include PHP Library?
Last modified: August 22, 2016

---

# Include PHP Library?

 *  [joinuniversedev](https://wordpress.org/support/users/joinuniversedev/)
 * (@joinuniversedev)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/include-php-library/)
 * I am trying to use the Coinbase API to display bitcoin exchange rates on my wordpress
   website.
    I downloaded and installed the [coinbase-php](https://github.com/coinbase/coinbase-php)
   library in my wp-include folder.
 * To use the functions from the library, I need to include it between the [insert_php]
   tags on my page. However, I cannot figure out the right path to successfully 
   include the library. I tried,
    `require_once(wp-include/coinbase-php/lib/Coinbase.
   php');` but that doesn’t work.
 * Any help would be greatly appreciated! Thanks!
 * [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)

Viewing 1 replies (of 1 total)

 *  [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * (@willbontrager)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/include-php-library/#post-5261095)
 * Hi joinuniversedev,
 * The full path may need to be specified, something like this:
 * `require_once($_SERVER['DOCUMENT_ROOT'].'/WPdirectory/wp-includes/coinbase-php/
   lib/Coinbase.php');`
 * Probably it was just a typo when you asked the question, but “wp-include” should
   be “wp-includes”
 * Will

Viewing 1 replies (of 1 total)

The topic ‘Include PHP Library?’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WillBontrager](https://wordpress.org/support/users/willbontrager/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/include-php-library/#post-5261095)
 * Status: not resolved