top | item 29891908

(no title)

fart32 | 4 years ago

> The PHP community also prefers medium sized packages, so you don't get a thousand dependencies accidentally.

I think it was Laravel or Lumen? I tried that one once and was kinda amazed it pulled like 100 packages. In PHP ecosystem, I think that's considered a lot (to be fair, this is few years back). I've worked on fairly large projects (mostly Symfony + Doctrine and PHPUnit) and don't recall seeing so many dependencies.

Now compare this to initialization of any common JS framework starter.

discuss

order

captn3m0|4 years ago

checked for a fresh laravel install: 110 packages, 40 of those are development dependencies. Of the 70, only 38 are non (symfony/laravel) dependencies.

The PHP ecosystem tends to use packages-for-interfaces, so that ups the count somewhat.

fart32|4 years ago

Yes, I saw similar numbers (just not in empty projects, but I'm not familiar with Laravel/Lumen - there might have been a good reason for it).

The point is that Composer packages are far from being that granular, we have less dependencies by literally order of magnitude.