News for hackers. Stuff that matters.
Re:PHP in 2019 by stephenr on Wednesday May 15, 2019 @12:38PM (#19921147)
I’d argue that the only “the” is one that’s distributed with it, which is PEAR. I’m not saying PEAR is used more or that it’s better, just that it’s the only one close to “default” with the language distributions.
Re:PHP in 2019 by tedivm on Wednesday May 15, 2019 @08:54PM (#19925211)
PEAR hasn't been distributed with PHP in well over a decade, and the last commit to the PEAR "modernization" project was in 2011.

PEAR is an abandoned tool used by no one. Arguing for it to be considered "the" package manager is a really weird fight to pick.

Re:PHP in 2019 by codedokode on Wednesday May 15, 2019 @06:18PM (#19924330)
I don't like that PEAR by default needs administrator privileges and installs packages into system directories. That's inconvenient because you might have many PHP applications, and each needs different versions of dependencies. What did PEAR developers think? That I will be working on a single app for whole life?

Installing libraries globally is inconvenient for developers. Sadly, most Linux package managers have same problem and do not allow you to install several versions of PHP or Node.

Re:PHP in 2019 by AOsborn on Thursday May 16, 2019 @07:48PM (#19934650)
PEAR installation will be disabled by default in PHP 7.4, see https://externals.io/message/103977. It was a good tool, once, but the community has moved on.
Re:PHP in 2019 by gremlinsinc on Wednesday May 15, 2019 @06:11PM (#19924284)
pear/pecl are more for installing extensions TO php in my experience, where composer is for installing packages built IN php, so composer is more the defacto community package manager, pear/pecl are useful though when you need to install gmp, gdi, intl, etc on your local dev environment. I don't know anyone who uses pear to install carbon or guzzle, or any other php package though.
Re:PHP in 2019 by akie on Wednesday May 15, 2019 @01:40PM (#19921842)
I literally know no one who uses PEAR.
Re:PHP in 2019 by icedchai on Wednesday May 15, 2019 @03:05PM (#19922619)
I do. I was using it back in 2003... pear/DB. I still have some code from that era that uses it.
Re:PHP in 2019 by munk-a on Wednesday May 15, 2019 @04:11PM (#19923239)
Would you use a pear dependency in a new project if you weren't pulling bits in from an older one?

Personally, I wouldn't... I worked with pear and pecl and composer is just far more pleasant to interact with.

Re:PHP in 2019 by icedchai on Wednesday May 15, 2019 @04:32PM (#19923457)
I agree... No, I would not. That code is old enough to drive at this point...
Re:PHP in 2019 by malinens on Thursday May 16, 2019 @09:02AM (#19928571)
actively maintained pear packages can be installed also with composer
Re:PHP in 2019 by stephenr on Wednesday May 15, 2019 @02:03PM (#19922050)
Which is literally irrelevant to my point.