# Plugin Abhängigkeiten

**URL:** <https://forum.shopware.com/t/plugin-abhangigkeiten/60158>\
**Category:** Programmierung\
**Created:** [25. Juni 2019 um 16:15 UTC](https://forum.shopware.com/t/plugin-abhangigkeiten/60158 "2019-06-25T16:15:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [25. Juni 2019 um 16:15 UTC](https://forum.shopware.com/t/plugin-abhangigkeiten/60158/1 "2019-06-25T16:15:36Z")

</div>

Ist es in Shopware 6 möglich mit Plugin/composer Abhängigkeiten zu arbeiten? ggf. sogar mit privaten Repos oder ähnl.?

Hintergrund: Ich entwickel Plugin A. Plugin A ist abhängig von Plugin B. Plugin B hat aber ein **eigenständiges privates Repo** , da es abgekoppelt ist.

Wenn ich nun Plugin A installiere, soll hier zusätzlich als Abhängigkeit auch Plugin B mit installiert werden.

Ist das möglich? Ich möchte ungern Plugin B, C, D, E usw. alles in Plugin A packen …&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [25. Juni 2019 um 16:45 UTC](https://forum.shopware.com/t/plugin-abhangigkeiten/60158/2 "2019-06-25T16:45:56Z")

</div>

Die Abhängigkeiten werden nicht automatisch geladen. Es gibt nur das hier:&nbsp;[https://docs.shopware.com/en/shopware-platform-dev-en/internals/plugins/plugin-information?category=shopware-platform-dev-en/internals/plugins](https://docs.shopware.com/en/shopware-platform-dev-en/internals/plugins/plugin-information?category=shopware-platform-dev-en/internals/plugins)

Ähnlich wie in SW5 kann man seine required Plugins mitgeben. Also Feld „require“.

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [25. Juni 2019 um 18:38 UTC](https://forum.shopware.com/t/plugin-abhangigkeiten/60158/3 "2019-06-25T18:38:15Z")

</div>

Da wir composer support, kannst du eig. alle Features von Composer verwenden. Ebenfalls die Repo Sachen wie Satis und co. Du musst dafür jedoch dein Plugin **nativ als Composer Package einbinden.**

D.h bloß im Project Template requiren und **nicht in custom/plugins tun**

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [26. Juni 2019 um 11:34 UTC](https://forum.shopware.com/t/plugin-abhangigkeiten/60158/4 "2019-06-26T11:34:36Z")

</div>

> [@Shyim schrieb:](https://forum.shopware.com/profile/20792/Shyim "Shyim")
> 
> Da wir composer support, kannst du eig. alle Features von Composer verwenden. Ebenfalls die Repo Sachen wie Satis und co. Du musst dafür jedoch dein Plugin **nativ als Composer Package einbinden.**
> 
> D.h bloß im Project Template requiren und **nicht in custom/plugins tun**

Stehe gerade noch auf den Schlauch: Du meinst ich require Plugin A&nbsp;in der root composer.json?&nbsp;
