# Vendor file path

**URL:** <https://discourse.cakephp.org/t/vendor-file-path/7625>\
**Category:** Need Help\
**Created:** [April 8, 2020, 1:33pm UTC](https://discourse.cakephp.org/t/vendor-file-path/7625 "2020-04-08T13:33:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![6120](https://avatars.discourse-cdn.com/v4/letter/6/278dde/32.png) [@6120](https://discourse.cakephp.org/u/6120)\
**Post date:** [April 8, 2020, 1:33pm UTC](https://discourse.cakephp.org/t/vendor-file-path/7625/1 "2020-04-08T13:33:26Z")

</div>

How do I load a class in Vendor folder ?  
I am trying to load this file :  
my\_site/vendor/payplug/lib/init.php

I am updating from cake 2.x to 3.3.7

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [April 8, 2020, 3:48pm UTC](https://discourse.cakephp.org/t/vendor-file-path/7625/2 "2020-04-08T15:48:38Z")

</div>

Was it installed with composer? If it’s a namespaced class, then it should be handled by the autoloader (`composer dumpautoload` to refresh that), and you can use it the same as any other class.

---

<div class="post-metadata">

**Author:** ![6120](https://avatars.discourse-cdn.com/v4/letter/6/278dde/32.png) [@6120](https://discourse.cakephp.org/u/6120)\
**Post date:** [April 8, 2020, 4:35pm UTC](https://discourse.cakephp.org/t/vendor-file-path/7625/3 "2020-04-08T16:35:26Z")

</div>

Was not ☹ Installed old school !

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [April 8, 2020, 11:36pm UTC](https://discourse.cakephp.org/t/vendor-file-path/7625/4 "2020-04-08T23:36:05Z")

</div>

You may need to add details in your own composer.json, then, to tell it about the namespace in that folder. See [Manually Installing a Plugin](https://book.cakephp.org/3/en/plugins.html#manually-installing-a-plugin).

---

<div class="post-metadata">

**Author:** ![6120](https://avatars.discourse-cdn.com/v4/letter/6/278dde/32.png) [@6120](https://discourse.cakephp.org/u/6120)\
**Post date:** [April 8, 2020, 11:47pm UTC](https://discourse.cakephp.org/t/vendor-file-path/7625/5 "2020-04-08T23:47:09Z")

</div>

OK. Thank you.  
You are always a great help !
