TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What are the current trends and future prospects for PHP?

4 点作者 Hayatoo9 个月前

2 条评论

solardev9 个月前
PHP is still the #10 programming language in the Stackoverflow survey (<a href="https:&#x2F;&#x2F;survey.stackoverflow.co&#x2F;2024&#x2F;technology#most-popular-technologies-language-prof" rel="nofollow">https:&#x2F;&#x2F;survey.stackoverflow.co&#x2F;2024&#x2F;technology#most-popular...</a>), above Rust, Kotlin, Ruby, Swift, Elixir, etc.<p>There are still a bazillion Wordpress sites that will probably be around forever. It&#x27;s still more popular than Svelte, Ruby, HTMX, Remix, etc. (<a href="https:&#x2F;&#x2F;survey.stackoverflow.co&#x2F;2024&#x2F;technology#most-popular-technologies-webframe-prof" rel="nofollow">https:&#x2F;&#x2F;survey.stackoverflow.co&#x2F;2024&#x2F;technology#most-popular...</a>). And there are a ton of Drupal agencies (<a href="https:&#x2F;&#x2F;www.drupal.org&#x2F;drupal-services" rel="nofollow">https:&#x2F;&#x2F;www.drupal.org&#x2F;drupal-services</a>). I went to a drupal conf a few years ago and was surprised by how many businesses still use it. (I HATE Drupal and will never touch it again, but some orgs swear by it). Lots of jobs too: <a href="https:&#x2F;&#x2F;jobs.drupal.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jobs.drupal.org&#x2F;</a> And on that survey, Laravel, Symfony, and CodeIgniter are also PHP.<p>The Web has a very long tail of old, stale, boring small to medium sites. PHP won&#x27;t make you rich these days and it won&#x27;t get you the latest and sexiest, but it&#x27;s still being maintained, still improving, still used, and you can still get jobs for it if you&#x27;re OK working with legacy code for old-fashioned companies.<p>-----------<p>I don&#x27;t think it&#x27;s as easy to scale up though, because PHP usually requires a whole LEMP stack to serve up, unlike JS code that can run serverless in an isolate or node instance. And it doesn&#x27;t have the advantage of being the same language used frontend, backend, and in-between.<p>I think React (or at least JSX) has largely taken over what PHP used to provide: in-HTML templating &amp; logic. The code is just as ugly and just as unmaintainable, but it&#x27;s very easy to get started with and there&#x27;s a glut of low-skill, low-cost devs, just like in the PHP days. Kinda makes sense that the big PHP company (Facebook) would then go on to make React.
PaulHoule9 个月前
I haven&#x27;t thought about PHP since 2011 or so when I was customizing Wordpress blogs.