News

PHP 2024 现状

作为 Web 开发的长期基石,PHP 为全球数百万网站提供支持。 它拥有活跃而专注的社区,非常重视灵活性和易用性。 但是 PHP 开发的现状如何呢?

为了更深入地了解塑造生态系统的洞察和趋势,我们向内部专家、PHP 技术布道师 Brent Roose 寻求了帮助,他将带领我们了解 2024 开发者生态系统现状调查的结果。 加入我们,探索调查结果并了解 PHP 开发者如何驾驭不断发展的现代 Web 开发格局。

参与者

我们分析了来自全球各地的 2,660 位 PHP 开发者的回答。

专业经验

受访者的专业编码经验差异较大,基本以处于职业生涯中期的开发者为主。 

地理分布

本次调查吸引了高度国际化的受众,参与者来自世界不同地区。 受访者最多的群体来自日本 (11%),其次是中国大陆 (9%) 和美国 (8%)。 其他值得注意的地区包括巴西 (7%) 和印度 (6%)。 德国 (5%)、法国 (4%)、荷兰 (2%) 和意大利 (2%) 等欧洲国家的参与凸显了这项调查的全球影响力。

年龄范围

受访者的年龄分布显示,处于职业生涯早期至中期的开发者占主导地位。 30 岁年龄段的开发者占社区的很大一部分,其次为 20 岁年龄段,这反映了 PHP 开发者主要为年轻而充满活力的群体。 与此同时,40 及 50 岁年龄段的开发者也占有很大比例,凸显了整个社区的丰富经验。 21 岁以下的年轻受访者和 60 岁以上的受访者群体规模较小,表明人口结构主要处于中间水平。

性别

调查的性别分布明显缺乏多元化,绝大多数受访者为男性。 女性代表很少,仅占参与者的一小部分;而非二元性别、性别酷儿和其他性别认同则几乎完全不存在。 数据凸显了开发者社区中一直存在的性别失衡现象,并表明该领域的包容性和代表性亟待改进。

“虽然调查凸显了开发者社区中的性别失衡以及多元化、公平和包容性不足问题,但人们正在致力通过诸如 Larabelles 等举措来改变这种状况。 Larabelles 是一个专为因性别原因而缺乏影响力的 PHP 和 Laravel 开发者而建立的社区。 我们鼓励包容性、提供资源并为开发者创造机会,帮助为科技领域的每个人建立一个更具支持性的环境。 虽然我们还未能提供完整的解决方案,但我们的努力将是解决调查数据凸显的失衡问题的重要一步。 我鼓励您加入我们的社区,与我们共同努力改善科技行业。”

Zuzana Kunckova
Zuzana Kunckova,X
Larabelles 创始人,PHP 和 Laravel 开发者

当前广泛使用的 PHP 版本

尽管 2024 年有 86% 的 PHP 开发者已在使用版本 8,但与 2020 年 96% 的版本 7 使用率相比(在发布时长相近的情况下),版本 8 的使用率仍然较低。

PHP 框架

Laravel 一直是最受我们用户群欢迎的 PHP 框架。 请参阅 2024 Laravel 现状调查以及我们的概述以深入了解该框架及其生态系统。

“作为 Laravel 的创造者,我很荣幸能够继续开发一种能够为全球各地开发者和公司赋能的框架。 Laravel 的使命一直是帮助广大团队快速且充满信心地交付令人惊叹、经过充分测试且架构精美的应用程序。 我十分荣幸能够见证我们社区每天构建的令人难以置信的解决方案,并且十分高兴能够为他们的成功提供支持。”

Taylor Otwell
Taylor Otwell,X
Laravel 创造者

“13 年前,有人在 Reddit 的 PHP 子版块写道:‘Laravel 是我现在最喜欢的框架。 但在内心深处,我还是希望自己是一位 symfony2 大师,使用更出色的工具。’ 见证 PHP 社区在过去十年中的变化让人欣喜:Laravel 曾经不被看好,但现在它已经是最受欢迎的框架。 我认为 Laravel 的成功之处在于,它对代码实用性的重视程度高于“正确无误”:95% 的时间里,它都奏效。 再加上非常强大的社区(无论是线上还是线下),成功自会水到渠成。 Laravel 的历程确实鼓舞人心,我认为每位程序员都会有所感触。”

Brent Roose,JetBrains 技术布道师
Brent Roose,PHP Annotated YouTube 频道
PhpStorm 技术布道师

PHP 开发环境

最常用的 IDE 或编辑器

虽然超过一半的受访者仍在使用 PhpStorm,但 VS Code 在开发者,尤其是初学者中的受欢迎程度一直在稳步提升。

“我们发现大多数使用 PhpStorm 的人都会无限期地使用它。 与此同时,新一代开发者正在成长,他们(合乎情理地)采用了像 VS Code 一样的工具来开始他们的编码之旅:VS Code 免费,且学习曲线低于诸如 PhpStorm 等完全成熟的 IDE。
不过,多年来我一直在告诉人们同一件事(早在我担任 JetBrains 布道师之前):磨刀不误砍柴工。 就像木匠必须花时间和精力学习操作重型机械一样,程序员也值得学习如何充分发挥 IDE 的全部潜能。 这是一笔短期投资,但从长远来看,它将大大提高您的工作效率。
最近,我一直在撰写面向这一群体的 PhpStorm 使用入门系列内容。 本系列内容的目标是帮助您完成 PhpStorm 入门,让您在几分钟内便可感受到工作效率提升。 我将涵盖诸如 IDE 操作、重构、测试、调试等主题。 我认为非常值得为此付出努力,强烈建议大家积极试用。”

Brent Roose,JetBrains 技术布道师
Brent Roose,PHP Annotated YouTube 频道
PhpStorm 技术布道师

试用 PhpStorm

各种框架的首选 IDE 或编辑器

PhpStorm(包括带有 PHP 插件的 IntelliJ IDEA Ultimate)是 PHP 开发者在大多数框架中的首选 IDE,在 Symfony 框架中更是被绝大多数开发者选用。 对于 Laravel 开发者而言,PhpStorm 同样占据首位,并面临来自第二大热门选择 VS Code 的竞争。 在 WordPress 开发者中,VS Code 勉强超过 PhpStorm 成为首选编辑器,这可能反映了 WordPress 的用户群更为广泛且他们倾向于轻量化工具。

调试

对于 PHP 开发者的调试方式,情况与 2023 年几乎无异,大多数受访者仍倾向于转储值而非使用专用调试器。

“根据我的经验,调试器是一种非常强大,却难以上手的工具。 由于 PHP 没有内置调试器,您需要采取额外的安装过程进行设置。 最重要的是,调试本身是一项需要练习的技能。 
我认为,无论是学习调试还是让调试器体验更加顺畅,都还有很大的改进空间。 不过,我十分期待明年的变化,因为 PhpStorm 团队将致力于使调试更加愉悦。 同时,我制作了一部关于 Xdebug 入门的视频,请在此处观看。”

Brent Roose,JetBrains 技术布道师
Brent Roose,PHP Annotated YouTube 频道
PhpStorm 技术布道师

测试框架

PHPUnit 仍然是使用最广泛的测试框架,用户数量仅略有下降,而 Pest 仍保持着 2023 年取得的 13% 份额。

“我非常感激 Pest 在 2024 年取得的成长。 短短一年时间,它在 Packagist 上的每日下载量就翻了一番。 凭借内置快照测试、压力测试、变异测试、架构测试、类型覆盖等功能,Pest 已经发展成为一种非常强大的测试框架。 感谢所有让这一切成为可能的人!”

Nuno Maduro
Nuno Maduro,X
Pest 测试框架创造者

代码质量工具

2024 年,有 3 款代码质量工具脱颖而出。 尽管与去年相比略有下降,PHP CS Fixer 仍然位居榜首。 与此同时,排名第二的 PHPStan 与第一名之间的差距已缩小至仅 1%。 PHP_CodeSniffer 继去年下降 5 个百分点后继续下滑。 

AI 采用

我们发现了 PHP 用户在编码和开发相关活动中使用 AI 工具的一些有趣趋势。 ChatGPT 成为最广泛使用的 AI 工具,GitHub Copilot 紧随其后。 其他工具(例如 Google Gemini 和 JetBrains AI Assistant)的总体采用率较低。

对于 AI 使用的政策,各家公司态度仍然各不相同。 虽然有 29% 的受访者表示所有项目都允许使用 AI 工具,但仍有几乎相同比例 (27%) 的受访者表示其公司只允许在部分项目中使用 AI 工具。 有趣的是,有 27% 的受访者表示其公司没有任何明确的 AI 使用政策,这反映了这些工具在开发环境中的规范化仍处于发展阶段。 同时,只有一小部分 (7%) 组织完全禁止使用第三方 AI 工具。

这些发现表明 AI 在开发工作流中的接受度越来越高,其中 ChatGPT 和 GitHub Copilot 作为领军者,在提高工作效率和解决问题方面做出了重要贡献。 尽管刚迈入这一赛道不久,但我们一直在持续改进我们的 JetBrains AI Assistant,致力于为开发者带来最高效的 AI 体验。

试用 AI Assistant

The PHP Foundation:2025 年项目和重点

The PHP Foundation 是一个成立于 2021 年 11 月,以支持 PHP 编程语言发展和可持续性为目标的非营利组织。 作为 The PHP Foundation 的创始成员之一,JetBrains 在支持这项倡议、提供资金和帮助推动全球 PHP 社区内部协作方面发挥了重要作用。

基金会团队负责语言和生态系统的许多新增内容,包括属性挂钩非对称可见性惰性对象用于安装扩展程序的新工具(名为 PIE),以及对 PHP 源代码的安全审核 – 这些都是 2024 年完成的工作!

那么 2025 年将有哪些目标呢? 基金会将延续其主要关注点 – 为用户改进语言并确保安全性和提供维护。 PhpStorm 技术布道师兼 The PHP Foundation 执行董事 Roman Pronskiy 要求社区在 X 上分享他们的意见和想法:

关于应优先考虑哪些事项,我们收到了许多有趣的建议。 以下是其中几个例子:

  • 可付诸生产的内置 Web 服务器
  • 数据库连接池
  • WASM 支持
  • 捆绑的扩展程序
  • 泛型(当然)
  • 记录/结构体

但在这个特定主题下,最引人注目的是重新设计 php.net 网站! 您有什么想法?

目前,我们有一些正在开发的功能,例如原生模块、模式匹配等。 欢迎关注 The PHP Foundation 的社交媒体频道,了解即将推出的项目:XMastodonLinkedInBluesky

结论

显然,随着开发者采用新的工具、技术和做法,PHP 生态系统一直在不断进化。 PhpStorm 仍是许多人的首选,尤其是那些使用 Symfony 和 Laravel 等框架的开发者,而 VS Code 也已在 WordPress 社区中站稳了脚跟。 AI 工具的日益普及反映了人们在编码和开发任务中越来越依赖 AI 的协助,开发者正在将这些工具视为协作和解决问题的利器。 不过,调查也凸显出一些有待改进的领域,例如提高性别多元化、扩大领域的代表性以及促进提升包容性。 随着 PHP 社区的不断发展,这些对当今开发格局的洞察将帮助揭示能够强化工具和整个社区的机会。

欢迎订阅我们精心策划的 PHP Annotated 每月概览,及时掌握所有最新资讯。

本博文英文原作者:

Tania Goral

Tania Goral

Brent Roose

Brent Roose

News

2024년 PHP 현황

PHP는 여전히 웹 개발의 중추로, 전 세계 수백만 개 웹사이트의 기반입니다. 활기차고 헌신적인 PHP 커뮤니티는 PHP의 유연성과 사용 편의성에 큰 가치를 둡니다. 그런데 PHP 개발의 현황은 어떨까요?

에코시스템을 형성하는 더 심층적인 인사이트와 추세를 알아보기 위해 JetBrains의 사내 전문가인 PHP 개발자 애드버킷 Brent Roose에게 2024년 개발자 에코시스템에 관한 설문조사의 결과에 관해 설명을 부탁했습니다. 여기서 함께 조사 결과를 살펴보고 PHP 개발자들이 끊임없이 변화하는 최신 웹 개발 환경을 어떻게 헤쳐나가고 있는지 알아보세요.

설문조사 참여자

이 조사에서는 전 세계 2,660명의 다양한 PHP 개발자 풀의 응답을 분석했습니다.

전문 경력

응답자들의 전문적인 코딩 경력은 매우 다양했으며, 중견 개발자의 비율이 눈에 띄게 많았습니다.

지역적 분포

이 설문조사에는 전 세계 여러 지역의 개발자들이 관심을 보이고 참여했습니다. 응답자 중 가장 많은 비중을 차지한 국가는 일본(11%)이었고, 그 다음으로 중국 본토(9%)와 미국(8%) 순이었습니다. 기타 주요 지역으로는 브라질(7%)과 인도(6%)가 있었습니다. 독일(5%), 프랑스(4%), 네덜란드(2%), 이탈리아(2%)와 같은 유럽 국가의 참여도는 이 설문조사의 글로벌 입지를 잘 보여줍니다.

연령대

응답자의 연령 분포를 보면 경력 초반부터 중반까지의 개발자가 대부분을 차지합니다. 30대 개발자가 커뮤니티의 상당 부분을 차지하며, 그 다음 근소한 차이로 20대가 뒤를 이었습니다. 이는 PHP의 젊고 역동적인 개발자층을 반영합니다. 한편, 40대와 50대 개발자들도 상당수 포함되어 있어, 커뮤니티 전반에 걸쳐 경험 수준이 폭넓게 분포하고 있음을 보여줍니다. 21세 미만의 젊은 응답자와 60세 이상의 응답자 그룹이 가장 적은 비중을 차지하여 주로 중간 연령대의 인구층이 두터움을 보여주었습니다.

성별

설문조사의 성별 분포는 다양성이 현저히 떨어져, 응답자의 압도적 다수가 남성이었습니다. 여성은 참여자 중 소수만을 차지하여 대표성이 낮았으며 제 3의 성, 젠더퀴어 및 기타 성 정체성을 가진 참여자는 거의 전무했습니다. 이 데이터는 개발자 커뮤니티의 계속되는 성별 불균형을 잘 드러내 주며, 이 분야에서 포용성과 대표성을 시급히 강화해야 함을 시사합니다.

“이번 설문조사에서 성별 불균형과 개발자 커뮤니티 내 다양성, 평등 및 포용성 부족이 드러났지만, Larabelles와 같은 이니셔티브를 통해 이를 바꾸려는 노력이 진행 중입니다. Larabelles는 성별 때문에 소외된 PHP 및 Laravel 개발자를 위한 커뮤니티입니다. 저희는 포용성을 장려하고, 리소스를 제공하며, 개발자들이 기술 분야의 모든 사람을 지지하는 환경을 만들 수 있게 기회를 만들어갑니다. 아직 완벽한 해결책을 제시하지는 못했지만, 저희의 노력은 설문조사 데이터에서 드러난 불균형을 해소하기 위한 중요한 발걸음이 될 것입니다. 저희 커뮤니티와 기술 산업을 개선하려는 노력에 동참해 주시길 바랍니다.”

Zuzana Kunckova

Zuzana Kunckova, X
Larabelles 설립자이자 PHP 및 Laravel 개발자

PHP의 버전 사용 현황

2024년에 8 버전을 사용하는 PHP 개발자는 86%였지만, 7 버전의 경우 출시 후 비슷한 기간이 지난 2020년에 96%가 채택했던 것에 비해서는 낮습니다.

PHP 프레임워크

Laravel은 여전히 ​​사용자층 사이에서 가장 인기 있는 PHP 프레임워크로 군림하고 있습니다. 이 프레임워크와 해당 에코시스템에 대한 내용은 2024년 Laravel 현황 설문조사와 이에 대한 개요에서 자세히 알아보세요.

“Laravel의 제작자로서 전 세계 개발자와 회사에 힘이 되는 프레임워크를 계속 개발할 수 있어 큰 영광입니다. 멋지고 잘 테스트된 아름다운 구조의 애플리케이션을 빠르고 자신감 있게 제공할 수 있도록 팀을 뒷받침하는 것이 Laravel의 변하지 않는 사명입니다. 우리 커뮤니티가 매일 개발해 내는 놀라운 솔루션을 볼 때면 자부심을 느끼며 이들의 성공에 일조하고 있다는 사실에 기쁩니다.”

Taylor Otwell

Taylor Otwell, X
Laravel 제작자 

“13년 전 PHP 서브레딧에 누군가가 이런 글을 남겼습니다. “지금 제가 가장 좋아하는 프레임워크는 Laravel입니다. 하지만 솔직히 Symfony2의 전문가가 되어 더 좋은 차를 몰고 싶습니다.” PHP 커뮤니티가 지난 10년 동안 어떻게 변화해왔는지 돌아보면 감회가 새롭습니다. Laravel은 예전에는 초라했지만, 지금은 가장 인기 있는 프레임워크가 되었습니다. Laravel이 성공할 수 있었던 데는 ‘정확함’보다 코드 유용성에 중점을 둔 것이 컸다고 생각합니다. 95%는 문제 없이 작동하니까요. 여기에 온라인과 오프라인의 매우 강력한 커뮤니티를 결합하면 성공의 공식이 완성됩니다. Laravel이 지나온 길은 진정한 영감의 원천으로, 모든 프로그래머가 알아야 한다고 생각합니다.”

Brent Roose, JetBrains 개발자 애드버킷

Brent Roose, PHP Annotated YouTube 채널
PhpStorm 개발자 애드버킷

PHP 개발 환경

가장 많이 사용되는 IDE 또는 에디터

응답자의 절반 이상은 여전히 PhpStorm을 사용하고 있지만, 특히 초보자를 중심으로 개발자들 사이에서 VS Code의 인기가 꾸준히 증가하고 있습니다.

“PhpStorm을 사용하는 대부분의 사람들은 다른 것을 사용하려고 하지 않습니다. 동시에 성장 중인 젊은 개발자 세대는 VS Code와 같은 도구로 코딩 여정을 시작하는 데, 이는 충분히 이해할 만합니다. 무료인 데다가 PhpStorm과 같은 본격적인 IDE에 비해 배우기도 쉽기 때문이죠.
하지만 저는 수년 동안(JetBrains에서 애드버킷으로 일하기 훨씬 전부터) 사람들에게 같은 말을 해왔습니다. 적절한 도구를 배우는 데 시간을 투자하는 것은 가치 있는 일이라고요. 목수가 육중한 기계의 작동법을 배우기 위해 시간과 노력을 투자해야 하는 것처럼, 프로그래머로서 IDE를 최대한 활용하는 법을 배우는 일은 가치가 있습니다. 이는 장기적으로 생산성을 훨씬 더 높여줄 단기적 투자라고 할 수 있습니다.
최근에 저는 이 그룹을 대상으로 하는 ‘PhpStorm 시작하기‘ 시리즈를 준비하고 있습니다. 이 시리즈는 PhpStorm을 시작하는 방법을 안내하여 몇 분 내에 생산성 향상을 느끼도록 하는 것이 목표이며, 다루는 주제는 IDE 액션, 리팩터링, 테스트, 디버그 등입니다. 노력해 볼만한 가치가 있으니 “한번 해 보시기를” 권해 드립니다.”

Brent Roose, JetBrains 개발자 애드버킷

Brent Roose, PHP Annotated YouTube 채널
PhpStorm 개발자 애드버킷

PhpStorm 사용해 보기

프레임워크별 IDE 또는 에디터 선택 현황

PhpStorm(PHP 플러그인이 설치된 IntelliJ IDEA Ultimate 포함)은 대부분의 프레임워크에 걸쳐 PHP 개발자들이 가장 많이 선택하는 IDE로, 특히 Symfony를 이용하는 PHP 개발자에게 인기가 많습니다. Laravel 개발자의 경우에도 PhpStorm이 1위를 차지하고 있으며, 두 번째로 많이 선택되는 VS Code와 경쟁하고 있습니다. WordPress 개발자가 선호하는 에디터로는 VS Code가 PhpStorm을 근소하게 앞질렀습니다. 이는 WordPress의 사용자 기반이 광범위하고 WordPress가 가벼운 도구를 선호하는 경향이 반영된 결과로 보입니다.

디버그

PHP 개발자의 디버그 방식은 2023년과 비교해 거의 변하지 않았으며, 설문조사에 참여한 대다수의 응답자가 여전히 전용 디버거를 사용하는 것보다 값을 덤핑하는 방식을 선호했습니다.

“제 경험에 따르면 디버거는 정말 강력한 도구이지만 시작하기 어렵기도 합니다. PHP에는 내장 디버거가 없기 때문에 이를 설정하려면 추가적인 설치 과정을 거쳐야 합니다. 게다가 디버그 자체도 연습이 필요한 기술입니다.
디버그 방법을 배우는 것뿐만 아니라 디버거 경험을 더욱 원활하게 만드는 부분도 개선의 여지가 많다고 생각합니다. PhpStorm 팀이 내년에는 디버그를 더욱 즐거운 과정으로 만들어줄 것으로 기대하고 있습니다. Xdebug를 시작하는 방법을 소개하는 제가 만든 동영상도 있으니 여기에서 확인해 보세요.”

Brent Roose, JetBrains 개발자 애드버킷

Brent Roose, PHP Annotated YouTube 채널
PhpStorm 개발자 애드버킷

테스트 프레임워크

PHPUnit은 사용자가 약간 줄기는 했지만 여전히 가장 널리 사용되는 테스트 프레임워크이고, Pest는 2023년에 달성한 13%의 점유율을 유지하고 있습니다.

“2024년 Pest의 성장에 대해 매우 감사하게 생각합니다. Packagist에서 일일 다운로드 수가 단 1년 만에 두 배로 늘어났습니다. Pest는 스냅샷 테스트, 스트레스 테스트, 돌연변이 테스트, 아키텍처 테스트, 타입 커버리지 등의 내장 기능을 앞세워 놀라울 정도로 강력한 테스트 프레임워크로 성장했습니다. 이 모든 것을 가능하게 해주신 모든 분께 감사드립니다!”

Nuno Maduro

Nuno Maduro, X
Pest 테스트 프레임워크 제작자

코드 품질 도구

2024년에는 3가지 코드 품질 도구가 선두 그룹을 형성했습니다. 작년에 비해 약간 감소하기는 했지만 PHP CS Fixer가 여전히 1위를 차지했습니다. 2위를 차지한 PHPStan은 1위와의 격차를 단 1%로 줄였습니다. PHP_CodeSniffer는 작년에 5% 하락한 이후 하락세를 이어갔습니다.

AI 채택

PHP 사용자 사이에서 코딩 및 개발 관련 활동을 위한 AI 도구 사용에 흥미로운 트렌드가 발견되었습니다. ChatGPT가 가장 널리 사용되는 AI 도구로 등극했고, GitHub Copilot이 두 번째로 인기 있는 도구로 뒤를 이었습니다. Google Gemini 및 JetBrains AI Assistant와 같은 다른 도구는 전반적으로 채택률이 낮았습니다.

AI 사용과 관련된 회사 정책은 다양하게 나타났습니다. 응답자의 29%는 모든 프로젝트에 AI 도구가 허용된다고 보고했고, 거의 비슷한 비율(27%)의 응답자는 회사에서 일부 프로젝트에만 AI 도구를 허용한다고 답했습니다. 흥미로운 점은 응답자의 27%가 회사에 명확한 AI 사용 정책이 없다고 보고했다는 것입니다. 이는 개발 환경에서 이러한 도구의 표준화가 진행 중임을 보여줍니다. 한편, 타사 AI 도구의 사용을 전면 금지하는 조직은 소수(7%)에 불과합니다.

이러한 조사 결과는 개발 워크플로에서 AI의 수용이 증가하고 있음을 보여주며, 생산성과 문제 해결에 기여하는 핵심 도구로 ChatGPT와 GitHub Copilot이 가장 앞서나가고 있습니다. JetBrains는 비교적 새로운 경쟁자이지만 개발자에게 가장 효율적인 AI 경험을 제공하기 위해 자체 JetBrains AI Assistant를 지속적으로 개선하고 있습니다.

AI Assistant 사용해 보기

PHP Foundation: 2025년 프로젝트 및 중점 사항

PHP Foundation은 PHP 프로그래밍 언어의 개발과 지속 가능성을 지원하기 위해 2021년 11월에 설립된 비영리 단체입니다. JetBrains는 PHP Foundation의 창립 멤버로서 자금을 조달하고 글로벌 PHP 커뮤니티 내에서 협업을 촉진하며 이 이니셔티브를 지원하는 데 중요한 역할을 하고 있습니다.

재단 팀은 이 언어와 에코시스템에 여러 최신 기능을 추가하는 일을 담당했으며, 여기에는 프로퍼티 후크, 비대칭 가시성, 지연 객체, 확장 프로그램 설치를 위한 새로운 도구PIE, 그리고 PHP 소스 코드의 보안 감사 등이 포함됩니다. 이 모두가 2024년 한 해에 이루어졌습니다!

그렇다면 2025년 계획은 무엇일까요? 재단은 이전과 마찬가지로 사용자를 위한 언어 개선과 보안 및 유지보수에 중점을 둘 예정입니다. PhpStorm 개발자 애드버킷이자 The PHP Foundation의 전무이사인 Roman Pronskiy는 X에서 의견과 아이디어를 공유해 줄 것을 커뮤니티에 요청했습니다.

이후 우선 순위를 두어야 할 부분에 관한 많은 흥미로운 제안을 받았습니다. 여기서 몇 가지만 소개합니다.

  • 프로덕션에 바로 사용할 수 있는 내장 웹 서버
  • 데이터베이스 연결 풀
  • WASM 지원
  • 번들로 포함된 확장 프로그램
  • 제네릭(당연히)
  • 레코드/구조체

이 특별한 스레드에서 가장 눈에 띄었던 것은 php.net 웹사이트의 새로운 설계였습니다! 여러분은 어떻게 생각하시나요?

기본 모듈, 패턴 일치 등 진행 중인 개발 작업이 몇 가지 있습니다. X, Mastodon, LinkedIn, Bluesky 등 PHP Foundation의 소셜 미디어 채널을 팔로우하여 다가올 프로젝트에 대해 알아보세요.

결론

개발자들이 새로운 도구, 기술 및 방식을 도입함에 따라 PHP 에코시스템은 분명히 발전을 이어가고 있습니다. PhpStorm은 여전히 가장 많은 선택을 받고 있으며, 특히 Symfony 및 Laravel과 같은 프레임워크 사용자들에게 인기가 많습니다. 한편, VS Code는 WordPress 커뮤니티 내에서 확고한 입지를 마련했습니다. AI 도구의 채택이 증가하고 있다는 것은 코딩과 개발 작업에서 AI의 도움을 받으려는 경향이 증가하고 있음을 보여주며, 개발자들은 이러한 도구를 협업자 혹은 문제 해결사로 여기고 있습니다. 한편, 이번 설문조사로 성별 다양성의 개선, 업계 대표성 확대 및 포용력 있는 분위기 조성 등 보완해야 할 부분도 확인되었습니다. PHP 커뮤니티가 앞으로 나아가는 과정에서 현재의 개발 현황을 보여주는 이러한 인사이트는 도구와 커뮤니티를 전체적으로 개선할 수 있는 기회가 될 것입니다.

엄선된 내용으로 구성된 PHP Annotated 월간 개요를 통해 최근 소식을 계속 확인하세요.

게시물 원문 작성자

Tania Goral

Tania Goral

Brent Roose

Brent Roose

News

The State of PHP 2024

PHP continues to be a cornerstone of web development, powering millions of websites around the world. Its vibrant and dedicated community values its flexibility and ease of use. But what does the current state of PHP development look like?

To uncover deeper insights and trends shaping the ecosystem, we’ve turned to our in-house expert, Brent Roose, Developer Advocate for PHP, who will guide us through the results of the State of Developer Ecosystem Survey 2024. Join us as we explore the findings and learn how PHP developers are navigating the ever-evolving landscape of modern web development.

Participants

We analyzed the responses of a diverse pool of 2,660 PHP developers from around the world.

Professional experience

The professional coding experience of the respondents varied widely, with a notable lean toward mid-career developers. 

Geographic distribution

The survey attracted a highly international audience, with participants hailing from several different world regions. The largest group of respondents came from Japan (11%), followed by Mainland China (9%) and the United States (8%). Other notable regions included Brazil (7%) and India (6%). The representation of European countries, such as Germany (5%), France (4%), the Netherlands (2%), and Italy (2%), highlight the survey’s global reach.

Age range

The age distribution of the respondents shows a predominance of early- to mid-career developers. Developers in their 30s represent a significant portion of the community, followed closely by those in their 20s, which reflects PHP’s largely young and dynamic developer base. Meanwhile, developers in their 40s and 50s are also well-represented, highlighting the breadth of experience across the community. Younger respondents under 21 and those aged 60 or older make up the smallest groups, indicating a primarily mid-range demographic.

Gender

The survey’s gender distribution shows a striking lack of diversity, with the overwhelming majority of respondents identifying as male. Female representation is minimal, making up only a small percentage of participants, while non-binary, genderqueer, and other gender identities are almost entirely absent. The data highlights the persistent gender imbalance within the developer community and suggests a pressing need for greater inclusivity and representation in the field.

“While the survey highlights gender imbalance and the lack of diversity, equality, and inclusion within the developer community, there are efforts to change that through initiatives like Larabelles. Larabelles is a community for PHP and Laravel developers who are underrepresented due to their gender. We encourage inclusivity, provide resources, and create opportunities for developers to help build a more supportive environment for everyone in tech. While we have not provided a complete solution yet, our efforts are important steps toward addressing the imbalance highlighted by the survey data. I encourage you to join our community and our efforts to improve the tech industry.”

Zuzana Kunckova
Zuzana Kunckova, X Larabelles founder and a PHP and Laravel developer

PHP versions in active use

While 86% of PHP developers are using version 8 in 2024, adoption remains lower compared to the 96% who had adopted version 7 in 2020, a similar length of time after its release.

PHP frameworks

Laravel continues to reign as the most popular PHP framework among our user base. Get deeper insights into the framework and its ecosystem in the State of Laravel 2024 survey and our overview of it.

“As the creator of Laravel, it’s a profound privilege to continue developing a framework that empowers developers and companies around the world. Laravel’s mission has always been to help teams ship amazing, well-tested, and beautifully architected applications quickly and with confidence. It’s an honor to see the incredible solutions our community builds every day, and I’m grateful to play a role in supporting their success.”

Taylor Otwell
Taylor Otwell, X Creator of Laravel 

“13 years ago, someone on the PHP subreddit wrote: ‘Laravel is my favorite framework right now. But deep down I wish I was a symfony2 guru and drove a nicer car.’ It’s intriguing to see how the PHP community has shifted in the past decade: Laravel used to be the underdog, but now it’s the most popular framework by far. What I think adds to Laravel’s success is its focus on code usability over ‘being correct’: 95% of the time, it just works. Combine that with a very strong community, both online and offline, and you get a recipe for success. Laravel’s journey is truly inspiring, and I think every programmer should be aware of it.”

Brent Roose, JetBrains Developer Advocate
Brent Roose, PHP Annotated YouTube channel Developer Advocate for PhpStorm

PHP development environments

Most used IDE or editor

While PhpStorm is still used by more than half of the respondents, VS Code is steadily gaining popularity among developers, especially beginners.

“We see that most people who use PhpStorm keep using it indefinitely. At the same time, there’s a new generation of developers growing up who (understandably) reach for tools like VS Code to start their coding journey: It’s free and there’s a lower learning curve compared to a full-blown IDE like PhpStorm. rnHowever, I’ve been telling people the same thing for years (long before I worked as an advocate at JetBrains): It’s worth investing time in learning the proper tools. Just like a carpenter has to spend time and effort learning to operate heavy machinery, it’s worth learning how to use an IDE to its full potential as a programmer. It’s a short-term investment that will make you so much more productive in the long run.rnRecently I’ve been working on a ‘Getting Started with PhpStorm’ series that addresses this group. The goal of this series is to get you started with PhpStorm, so that you feel productive with it within minutes. I cover topics like IDE actions, refactoring, testing, debugging, etc. I think it’s worth the effort, so I’d say: ‘Give it a try.’”

Brent Roose, JetBrains Developer Advocate
Brent Roose, PHP Annotated YouTube channel Developer Advocate for PhpStorm

Try PhpStorm

IDE or editor of choice per framework

PhpStorm (including IntelliJ IDEA Ultimate with the PHP plugin) is the leading choice among PHP developers across most frameworks, particularly Symfony, where it is used by a substantial majority. For Laravel developers, PhpStorm also holds the top spot and faces competition from VS Code, the second most popular choice. Among WordPress developers, VS Code narrowly surpasses PhpStorm as the preferred editor, likely reflecting WordPress’s broader user base and its inclination toward lightweight tools.

Debugging

When it comes to how PHP developers debug, the picture is almost unchanged from 2023, with the majority of those surveyed still favoring dumping values over using a dedicated debugger.

“In my experience, a debugger is a really powerful tool, but it’s also difficult to get started with. Because PHP doesn’t have a built-in debugger, there’s an additional installation process you need to go through to set it up. On top of that, debugging itself is a skill that needs practice. rnI think there’s a lot of room for improvement when it comes both to learning debugging as well as to making the debugger experience more frictionless. I’m looking forward to next year though, as the PhpStorm team is going to work to make debugging more enjoyable. Meanwhile, I’ve already made a video about getting started with Xdebug, check it out here.”

Brent Roose, JetBrains Developer Advocate
Brent Roose, PHP Annotated YouTube channel Developer Advocate for PhpStorm

Testing frameworks

PHPUnit is still the most widely used testing framework, with only a slight decrease in users, while Pest retains the 13% share it achieved in 2023.

“I’m incredibly grateful for the growth of Pest in 2024. Its daily downloads on Packagist have doubled in just one year. With features like built-in snapshot testing, stress testing, mutation testing, architectural testing, type coverage, and more, Pest has grown into an incredibly powerful testing framework. Thank you to everyone who made this possible!”

Nuno Maduro
Nuno Maduro, X Creator of the Pest testing framework

Code quality tools

A cluster of 3 code quality tools stood above the rest in 2024. Despite the slight decrease from last year, PHP CS Fixer is still at the top. Meanwhile, second-ranked PHPStan closed the gap between itself and first place to just 1%. PHP_CodeSniffer continued its decline following last year’s 5 percentage point drop. 

Adoption of AI

We uncovered some interesting trends regarding the use of AI tools for coding and development-related activities among PHP users. ChatGPT emerged as the most widely used AI tool, with GitHub Copilot following as the second most popular. Other tools, such as Google Gemini and JetBrains AI Assistant, saw less adoption overall.

On company policies surrounding AI usage, attitudes remain varied. While 29% of respondents reported that AI tools are allowed for all projects, an almost equal proportion (27%) said their companies only allow AI tools for select projects. Interestingly, 27% of respondents reported that their companies do not have any explicit AI usage policy, reflecting the ongoing normalization of these tools in development environments. Meanwhile, only a small percentage (7%) of organizations prohibit the use of third-party AI tools altogether.

These findings reveal a growing acceptance of AI in development workflows, with ChatGPT and GitHub Copilot leading the way as key contributors to productivity and problem-solving. Despite being relatively new to the race, we’re constantly improving our own JetBrains AI Assistant to bring the most efficient AI experience to developers.

Try AI Assistant

The PHP Foundation: Projects and focus for 2025

The PHP Foundation is a non-profit organization established in November 2021 to support the development and sustainability of the PHP programming language. As one of the founding members of the PHP Foundation, JetBrains has been instrumental in supporting this initiative, providing funding and helping to drive collaboration within the global PHP community.

The foundation team is responsible for many of the recent additions to the language and ecosystem, including property hooks, asymmetric visibility, lazy objects, a new tool for installing extensions called PIE, and a security audit of the PHP source code – all in 2024 alone!

So what’s coming in 2025? The main focus for the foundation will remain the same – improving the language for users and ensuring security and maintenance. Roman Pronskiy, PhpStorm Developer Advocate and Executive Director of The PHP Foundation, asked the community to share their opinions and ideas on X:

We received many interesting suggestions about what we should prioritize. Here are just a few of them:

  • A production-ready, built-in web server
  • A database connection pool
  • WASM support
  • Bundled extensions
  • Generics (of course)
  • Records/structs

But the one that stood out more in this particular thread was the redesign of the php.net website! What do you think?

There are some ongoing developments such as native modules, pattern matching, and others. Follow The PHP Foundation’s social media channels to learn about the coming projects: X, Mastodon, LinkedIn, and Bluesky.

Conclusion

The PHP ecosystem is clearly continuing to evolve as developers adopt new tools, technologies, and practices. PhpStorm remains a top choice for many, particularly among those using frameworks like Symfony and Laravel, while VS Code has established a strong foothold within the WordPress community. The growing adoption of AI tools reflects an increasing reliance on AI to assist with coding and development tasks, with developers viewing these tools as collaborators and problem solvers. However, the survey also highlights areas for growth, such as improving gender diversity, broadening representation in the field, and fostering greater inclusivity. As the PHP community moves forward, these insights into today’s development landscape reveal opportunities to strengthen both the tools and the community as a whole.

Keep up to date with all the latest news with our curated PHP Annotated monthly overview.