“PHP The Right Way is better on this: PHP”
PHP: The Right Way
现代 PHP 最佳实践速查,纠正过时的写法
由 Josh Lockhart、Phil Sturgeon 等人维护的社区指南,汇总现代 PHP 开发的惯例和最佳实践,如代码风格、依赖管理、安全、测试和部署,并附上进一步阅读的链接。它不是循序渐进的教程,而是一份集中在一个站点上的清单式指南。目标是让新手少走弯路,纠正网上大量过时的 PHP 教程。
HN 上的人反复把它推给 PHP 新手,用来抵消过时的教程和坏习惯,说它覆盖现代 PHP 的基础又不堆砌清单,是入门时的好起点。
刚入门或回归 PHP 的开发者
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1先通读一遍,知道现代 PHP 有哪些惯例
- 2遇到具体问题时回来查对应章节
- 3顺着它给的链接深入读 Composer、安全等主题
- 4和官方文档配合使用
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“PHP: The Right Way [1] was well received here on HN [2] when it was announced a couple of months ago.”
“I'll leave these links here, you might find them useful:”
“The PHP community is moving forward and trying to do things the right way. Checkout PHP”
“There's also websites like PHP The Right Way [1] that act like a collection of best practices.”
“Resources like PHP the Right Way help counter this”
看全部 20 条 →
“one thing that would probably be wise is linking PHP somewhere in there to try and influence coders to not make bad decisions off the bat.”
“Check out some of the works pointing the general populous in the right direction:”
“PHP The Right Way [1] already covers the basics of modern PHP, without turning into a laundry list.”
“The creators should have a look at PHP which is really basic guidelines for any modern PHP project.”
“PHP is also a goof landing spot.”
“If you're looking for a solid php resource with a more modern and secure approach I'd recommend”
“there is actually a very good website about the good parts of PHP: PHP”
“PHP is a great resource for most things you'll need to know when working with modern PHP. Definitely start here.”
“Was hoping this would be similar to PHP: The Right Way where everything you need to know is on the one page with links for more information available”
“PHP is a good start.”
“there are some good starting/best practices guides to help (that are regularly updated), such as:”
“I found PHP to be very useful.”
“My final project in my php class last year was way better than it would of been due to one simple website: PHP”
“Take a look at (链接) or PHP for some primers.”