上一篇:文档撰写 下一篇:社区

资源

PHP 官方

  • PHP 官方网站
  • PHP 官方文档

值得关注的大牛

  • Rasmus Lerdorf
  • Fabien Potencier
  • Derick Rethans
  • Chris Shiflett
  • Sebastian Bergmann
  • Matthew Weier O’Phinney
  • Pádraic Brady
  • Anthony Ferrara
  • Nikita Popov

指导

phpmentoring.org - PHP 社区中的一对一指导。

PHP 的 Paas 提供商

PagodaBox
AppFog
Heroku
fortrabbit
Engine Yard Cloud
Red Hat OpenShift Platform
dotCloud
AWS Elastic Beanstalk
cloudControl
Windows Azure
Google App Engine
Jelastic

框架

许多的 PHP 开发者都使用框架,而不是重新造轮子来构建 Web 应用。框架抽象了许多底层常用的逻辑,并提供了有益又简便的方法來完成常见的任务。

你并不一定要在每个项目中都使用框架。有时候原生的 PHP 才是正确的选择,但如果你需要一个框架,那么有如下三种主要类型:

  • 微型框架
  • 全栈框架
  • 组件框架

微型框架基本上是一个封装的路由,用来转发 HTTP 请求至一个闭包,控制器,或方法等等,尽可能地加快开发的速度,有时还会使用一些类库来帮助开发,例如一个基本的数据库封装等等。他們用来构建 HTTP 的服务卓有成效。

许多的框架会在微型框架上加入相当多的功能,我们则称之为全栈框架。这些框架通常会提供 ORMs ,身份认证扩展包等等。

组件框架是多个独立的类库所结合起来的。不同的组件框架可以一起使用在微型或是全栈框架上。

  • 热门的 PHP 框架

组件

正如标题提到的,「组件」是另一种建立,发布及推动开源的方式。现在存在的各种的组件库,其中最主要的两个为:

  • Packagist
  • PEAR

这两个组件库都有用來安装及升级的命令行工具,这部分已经在這部分已經在[依赖管理]中解释过。

此外,还有基于组件的构成的框架的提供商提供不包含框架的组件。这些项目通常和其他的组件或者特定的框架没有依赖关系。

例如,你可以使用 [FuelPHP 验证类库],而不使用 FuelPHP 整个框架。

  • Aura
  • FuelPHP
  • Hoa Project
  • Orno
  • Symfony Components
  • The League of Extraordinary Packages
  • Laravel’s Illuminate Components
    • Eloquent ORM
    • Queue

Laravel 的 [Illuminate 组件] 和 Laravel 框架将变得更加解耦。 现在我们只列出和 Laravel 框架最没有依赖关系的组件。

其他有用的资源

Cheatsheets

  • PHP Cheatsheets - for variable comparisons, arithmetics and variable testing in various PHP versions
  • PHP Security Cheatsheet

更多最佳实践

  • PHP Best Practices
  • Best practices for Modern PHP Development

    PHP 世界

  • PHP Developer blog

视频教程

Youtube 视频

  • PHP Academy
  • The New Boston
  • Sherif Ramadan
  • Level Up Tuts

    付费视频

  • Standards and Best practices
  • PHP Training on Pluralsight
  • PHP Training on Lynda.com
  • PHP Training on Tutsplus
  • Laracasts

书籍

市面上有很多关于 PHP 的书,但遗憾的是很多都已经非常陈旧而且不正确的资料。甚至还有出版商发布「 PHP 6 」,这是不存在的书,而且永远不会出现。因为那些书,所以 PHP 的下一个版本为「 PHP 7 」。

这个章节的目录主要是针对 PHP 开发,并且会随着最新的技术趋势而更新。如果你想在这里加入你的书,请发送一个 PR ,我们将会审查你提供的内容是否有相关性。

免费书籍

PHP The Right Way - This website is available as a book completely for free.

付费书籍

  • Modernizing Legacy Applications In PHP - Get your code under control in a series of small, specific steps
  • Building Secure PHP Apps - Learn the security basics that a senior developer usually acquires over years of experience, all condensed down into one quick and easy handbook
  • The Grumpy Programmer’s Guide To Building Testable PHP Applications - Learning to write testable doesn’t have to suck
  • Securing PHP: Core Concepts - A guide to some of the most common security terms and provides some examples of them in every day PHP
  • Scaling PHP - Stop playing sysadmin and get back to coding
  • Signaling PHP - PCNLT signals are a great help when writing PHP scripts that run from the command line.
上一篇:文档撰写 下一篇:社区