<p>Here is the method we are including libraries in our plugin.</p>

<pre><code>namespace Craft
require_once(CRAFT_PLUGINS_PATH.'parse/parsequery/xx.php');
</code></pre>

CC BY-SA 3.0
2015-10-26T15:52:08.173Z
2015-10-26T15:52:08.173Z
a-am
<p>I want to include <code>Parse</code> SDK in my plugin. I created a folder <code>lib</code> and put the SDK in it. and called like that in controller:</p>

<pre><code>namespace Craft;
use Parse\ParseClient;
use Parse\ParseQuery;



    $APPID = 'xx';
    $MASTERKEY = 'xx';
    $RESTKEY = 'xxx';
    $PARSEURL = 'https://api.parse.com/1/';

    $list = new parseQuery('Dance');
    $results = $list-&gt;find();
</code></pre>

<p>And it says: <code>Fatal error: Class 'Parse\ParseQuery' not found in /vagrant/craft/plugins/xx</code> not found.</p>

<plugin-development>
How to call external lib in my plugin?
# How to call external lib in my plugin?

(Asked by: username_0 on 2015-10-26)

I want to include Parse SDK in my plugin. I created a folder lib and put the SDK in it. and called like that in controller:
namespace Craft;
use Parse\ParseClient;
use Parse\ParseQuery;



    $APPID = 'xx';
    $MASTERKEY = 'xx';
    $RESTKEY = 'xxx';
    $PARSEURL = 'https://api.parse.com/1/';

    $list = new parseQuery('Dance');
    $results = $list->find();

And it says: Fatal error: Class 'Parse\ParseQuery' not found in /vagrant/craft/plugins/xx not found.

**Tags:** plugin-development

---

## 1 answers

### Answer by username_1 on 2015-10-26. Score: 2 | Accepted answer

Here is the method we are including libraries in our plugin.
namespace Craft
require_once(CRAFT_PLUGINS_PATH.'parse/parsequery/xx.php');


---

