That guy on Github wrote:Composer still remains the de facto standard for package management in the PHP community.
Yeah this was what I was referring to. If you step foot in some PHP communities and admit you either a) don't use Composer or worse, b) don't use a package manager at all, the pitchforks and downvotes will be assembled in record time. In my opinion it hurts PHP and web development as a whole since no rational discussion can even begin to take place. I face the same problems admitting I use WordPress (WordPress is reviled in /r/php), and have even been told to remove it entirely from my resume if looking for a job (except for a WordPress-specific job, of course). It's straight up prejudice and just plain stupid.
Derokorian;11051133 wrote:I really wish people would understand not everyone wants to use the package manager they like....
Agreed. I haven't used one before other than NPM, but that's only to install Less and UglifyJS on my system so PhpStorm can utilize them. If I want to use jQuery I either just download it from their site or take a copy of the .js file from another project and drop it in my includes folder of my current one. I'm not suggesting they don't have their purpose or benefits, but not providing a way to use your library or resource without the use of a package manager is just poor decision making.
sneakyimp;11051135 wrote:Anyone else think the PHP devs are being a bit overzealous?
Yes, though from a personal standpoint I love it. New features, performance improvements, security patches. Awesomesauce. From just about every other perspective, it's a ticking time bomb.
From everything I have read it's a problem in PHP overall and it's getting worse as time goes on. Some people blame the PHP developers, some people blame hosts, some people blame users, others have no idea who to blame they just like to be loud.
It's becoming more and more of an issue with WordPress installations since there are so many of them and no one seems to update (their PHP version). When I got this job 4.5 years ago and started using WordPress it was right around then they had raised the minimum PHP version to 5.2. They also raised the minimum MySQL version but I don't recall the version. Anyway, from what I have read in recent discussions on their Trac site, even raising the minimum to 5.2 broke a lot of sites. There was a recent conversation I read that even got a little heated between plugin developers and the WordPress developers about a plan about the future and raising the minimum to... anything, at this point. The word is there is zero plan about the future, and zero plans to raise it anytime soon. Doing so, in the WordPress developers' eyes, would be too catastrophic and would break too many sites. The only good news is, according to their own stats, the numbers of WordPress installations running on 5.3 and lower is decreasing, though I guess not fast enough.
The big issue that keeps coming up is plugin developers are using newer and newer techniques that require higher PHP versions. Even using namespaces (version 5.3) has become an issue since there are numerous installs still on 5.2 or lower. I have found using array dereferencing (my favourite and most-used feature in a long time) constantly breaks sites because it requires 5.4, and all too often we end up dealing with a host that has 5.3 installed. Sometimes we can change the version, but it depends on the host.
I don't know what the solution is. I just know I want to use PHP 7 sooner rather than later because it is chalk full of improvements that would useful to me in my daily work. Null coalescing operator? Yes please! Goodbye tiresome ternary statements. Spaceship operator (officially known as combined comparison operator)? Yes please! Custom sorting functions can be taken care of in a single line of code. A ridiculous improvement in performance? Yes please! I just have to wait until 2025 to use it.