TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PHP in 2024

105 pointsby theThreeabout 1 year ago

13 comments

geek_atabout 1 year ago
I was never able to move from PHP to something else. I tried nodejs for a few months but it always seemed much more complicated. Especially the dependency and build system.<p>With PHP to move my code to a production system I just need to run `git pull` and the new codebase is instantly live. No builds, no server updates.<p>The Markup system of PHP is also very very handy. No more messing with handlebars or external libraries.<p>Realistically you can start a small site with PHP and HTMX and no external PHP package dependencies in an evening.
评论 #39987937 未加载
评论 #39988206 未加载
评论 #39988837 未加载
评论 #39987940 未加载
评论 #39988171 未加载
评论 #39989002 未加载
评论 #39987947 未加载
评论 #39988481 未加载
gopalvabout 1 year ago
PHP has a special place in the story of the web-dev.<p>The whole &quot;no build step&quot; was the most underrated factor for its success, because it was such a low-skill tool to pick up.<p>The tightness of that edit-test-move loop was why I used it, even if the &quot;edit&quot; included &quot;sftp it to a vhost&quot;.<p>That bit is what made it successful &amp; I can&#x27;t think of anything I&#x27;ve used in the last decade which felt as easy as PHP for that particular style of self-taught programmer.
评论 #39988134 未加载
评论 #39987980 未加载
评论 #39988143 未加载
评论 #39987946 未加载
评论 #39989289 未加载
评论 #39988184 未加载
评论 #39987973 未加载
notresidenterabout 1 year ago
PHP and the ecosystem around it, especially Laravel, makes developers incredibly productive: everything is so damn easy.<p>Nothing comes close to it in Go, Ruby, JS (Node), Python; from what I&#x27;ve seen. Laravel is one step ahead.
评论 #39989009 未加载
评论 #39988683 未加载
评论 #39988071 未加载
评论 #39988125 未加载
评论 #39988139 未加载
评论 #39988377 未加载
评论 #39988170 未加载
hivacruzabout 1 year ago
PHP is a great language to learn OOP, classes, interfaces, abstract classes, traits, managing dependencies and unit tests. I&#x27;m not using it anymore but I learned basically everything with it a decade ago. Thanks PHP!
评论 #39988584 未加载
zelphirkaltabout 1 year ago
I thought the blog post would introduce me to how PHP in 2024 somehow got rid of all the cruft from ages ago, but instead it merely talks about some frameworks. Probably high level frameworks are what saves PHP from dying, because they mean, that people don&#x27;t have to deal with as gnarly PHP all the time, but going so far as being excited about them? Sounds more like a justification to still keep using this language, despite all the other often better language options out there. Heck, I would even prefer writing Java these days, than going back to PHP.
评论 #39988201 未加载
esherabout 1 year ago
Posts related to PHP usually become discussion if the language sucks or not here on HN. I am co-founder of a PHP PaaS and I can confirm that almost all clients are using frameworks or even CMS systems on top of PHP to build stuff. Why not?<p>I am interested how PHP and frontend tooling will work out in the future. Nobody is compiling JS&#x2F;CSS with PHP (as far as I see). That is usually done with Node.js. Livewire (and Inertia.js) are bridges. Sometimes PHP becomes a backend to provide an API for an SPA frontend.
padjoabout 1 year ago
Will 2024 be the year that PHP users finally feel they no longer have to tell everyone else that PHP doesn’t suck?
miguelxtabout 1 year ago
I&#x27;ve been being productive by solving real business problems with PHP since 2007. Hope to continue doing so in the future.
xeornetabout 1 year ago
Have been using PHP since 2008 and will continue to do so. The community, ease of development and ecosystem around Laravel is unbeatable.
评论 #39987897 未加载
pier25about 1 year ago
In April 2024 PHP reached its lowest position ever in the TIOBE index. It&#x27;s not even in the top 10 anymore.<p><a href="https:&#x2F;&#x2F;www.tiobe.com&#x2F;tiobe-index&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.tiobe.com&#x2F;tiobe-index&#x2F;</a>
评论 #39994612 未加载
la_fayetteabout 1 year ago
Using PHP with docker the default way would require several docker images to run in parallel, i.e., php-fpm, webserver, etc... I use nginx unit to have a standalone docker image with php, webserver and application, similar as you would have it for a node or spring boot application. nginx unit has no support for http 2&#x2F;3 and you would require a proxy to support that, FrankenPHP seems to be an interesting alternative for my setups, will definitely check it out!
评论 #39990304 未加载
dan222about 1 year ago
Can anyone help me as a newbie? I see many comments saying php is so simple to use, but I&#x27;m getting bogged down with Docker &#x2F; Composer etc etc. There seems to be a lot to learn, am I going about it the wrong way? What&#x27;s the simplest setup that I can use for production as well as dev (otherwise I&#x27;d just use laragon). Thanks.
评论 #39990266 未加载
评论 #39991198 未加载
评论 #40008522 未加载
emh68about 1 year ago
Laravel is never going to be competitive with Django&#x2F;Rails simply because PHP as a language is just not as easy to master as Python&#x2F;Ruby. There, I said it. Lots of PHP fans write these articles about how PHP is catching up in terms of usability, but nobody is choosing PHP in 2024 (other than truly uninformed people who are just picking their project language at random).<p>The one area where PHP is useful in 2024 is for prototyping a website quickly. As a one-person team, PHP without a framework (and without OOP) is the fastest way to build a fully-functioning complex site. I built a massively complicated site this way, in very little time. This is great because if it ever becomes popular, I can simply hire developers to rewrite it in the latest framework du jour (probably Next&#x2F;Nuxt&#x2F;whatever)
评论 #40020868 未加载