5 ms·
PHP community had always been anti-frameworks and anti-libraries. I worked at company where use of third-party libraries was entirely forbidden on most projects
by ungzd 10y ago
PHP community had always been anti-frameworks and anti-libraries. I worked at company where use of third-party libraries was entirely forbidden on most projects. I think it's because:
- Quality of PHP frameworks is low (at least it was last time I used it)
- PHP parses and evaluates whole libraries and framework code on each requests. There's proprietary commercial (lol!) software to enable at least caching of bytecode
- Packaging just does not work (Pear, now there's Composer, not tried it, seems that it works)
Overall, last time I used PHP i had sense of its community mostly being nihilistic and preferring cowboy programming. It's straight opposite to Java where you will be shamed for not using dependency injection and EJBs for page visits counter. In PHP world you are considered insane misfit if you're writing tests.
For some things advice to just code and don't use unnecessary libs is useful. Recently I had that php/cgi feeling when I worked on small microservice in clojure: no OOP, no MVC, no ORM, no templates, no separating each 10 lines of code to module, just take Ring request and return Ring response which are simple associative arrays. This was a refreshing feeling.
- andyfleming 10y agoIf you haven't used PHP since composer became a standard in projects, you don't know modern PHP.
- fredleblanc 10y ago"Modern PHP" being one of the trigger words in the OP. That said, in terms of timeline, PHP has gotten better as a whole since then.
- spdionis 10y agoThe biggest problem in the modern PHP community is that you will be shamed for not using DI for a page counter so i don't know what you're talking about.