# Escaping the dependency hell

**URL:** <https://help.nextcloud.com/t/escaping-the-dependency-hell/81407>\
**Category:** 💻 Development\
**Tags:** announcement\
**Created:** [May 13, 2020, 10:44am UTC](https://help.nextcloud.com/t/escaping-the-dependency-hell/81407 "2020-05-13T10:44:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristophWurst](https://help.nextcloud.com/user_avatar/help.nextcloud.com/christophwurst/32/51805_2.png) [@ChristophWurst](https://help.nextcloud.com/u/ChristophWurst)\
**Post date:** [May 13, 2020, 10:44am UTC](https://help.nextcloud.com/t/escaping-the-dependency-hell/81407/1 "2020-05-13T10:44:58Z")

</div>

Hello Nextcloud developers,

I just published a little blog post about https://github.com/coenjacobs/mozart. I think this is a tool that more of use would appreciate, especially the ones that have run into the composer package conflicts before 😀

> **[Rock Me Amadeus: Escaping the php Dependency Hell](https://blog.wuc.me/2020/05/13/rock-me-amadeus-php-dependency-hell.html)**
>
> Similar to some other programming language and environments, php is subject a form of the dependency hell. That means only one version of a class can be loaded at a time. For simple applications that is less of a problem as you will most likely...

I’d appreciate if a few apps would give this a try. If it turns out to work for some apps then we should definitely encourage this more and add it to our app dev docs.

Let me know if you have any questions!

Cheers

---

<div class="post-metadata">

**Author:** ![JimmyKater](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jimmykater/32/4850_2.png) [@JimmyKater](https://help.nextcloud.com/u/JimmyKater)\
**Post date:** [May 13, 2020, 10:52am UTC](https://help.nextcloud.com/t/escaping-the-dependency-hell/81407/2 "2020-05-13T10:52:31Z")

</div>

that seems to be important… so don’t you wanna make it sticky to the top of this category for a while?

---

<div class="post-metadata">

**Author:** ![ChristophWurst](https://help.nextcloud.com/user_avatar/help.nextcloud.com/christophwurst/32/51805_2.png) [@ChristophWurst](https://help.nextcloud.com/u/ChristophWurst)\
**Post date:** [May 13, 2020, 12:19pm UTC](https://help.nextcloud.com/t/escaping-the-dependency-hell/81407/3 "2020-05-13T12:19:00Z")

</div>

It’s not a like a new or urgent matter. I would like developers to be more aware of this, but also I don’t want to rush it any make them use a tool where we don’t fully know the impact yet.

This needs more testing and getting acquainted.

---

<div class="post-metadata">

**Author:** ![ChristophWurst](https://help.nextcloud.com/user_avatar/help.nextcloud.com/christophwurst/32/51805_2.png) [@ChristophWurst](https://help.nextcloud.com/u/ChristophWurst)\
**Post date:** [May 13, 2020, 12:19pm UTC](https://help.nextcloud.com/t/escaping-the-dependency-hell/81407/4 "2020-05-13T12:19:33Z")

</div>



---

<div class="post-metadata">

**Author:** ![christianlupus](https://help.nextcloud.com/user_avatar/help.nextcloud.com/christianlupus/32/22699_2.png) [@christianlupus](https://help.nextcloud.com/u/christianlupus)\
**Post date:** [November 14, 2020, 3:02pm UTC](https://help.nextcloud.com/t/escaping-the-dependency-hell/81407/5 "2020-11-14T15:02:18Z")

</div>

Hello Christoph,  
I stumbled just over your post and it might solve a problem we (dev team of cookbook app) are facing at the moment. In your short article, you wrote, that you tested it and it seemed to work.  
I wanted to ask, is there an example publicly available? I looked at the docs of the coenjacobs/mozart package but there needs to be 4 configurations: Apart from the variables `dep_*` that should work straight forward with PSR4, there need to be the `classmap_*` configurations. I do not know how to set these accordingly. Any (good) hints?

Thanks anyways for the package hint

---

<div class="post-metadata">

**Author:** ![ChristophWurst](https://help.nextcloud.com/user_avatar/help.nextcloud.com/christophwurst/32/51805_2.png) [@ChristophWurst](https://help.nextcloud.com/u/ChristophWurst)\
**Post date:** [November 16, 2020, 8:40am UTC](https://help.nextcloud.com/t/escaping-the-dependency-hell/81407/6 "2020-11-16T08:40:05Z")

</div>

Hi,

we have a working example with [https://github.com/nextcloud/mail/blob/master/composer.json](https://github.com/nextcloud/mail/blob/master/composer.json).

Hope that helps.
