search

[PHP]程序员技能栈

[PHP]程序员技能栈.md—/Users/zjh/Documents/我的文章/[PHP]程序员技能栈

PHP程序员技能站


摘要:创业不息、折腾不止,今年跟朋友又折腾了一个新项目:Color公寓。线上产品主要是一个在线网站,所以不得不把技术栈切换到网站开发模式。通过最近一段时间alpha版本的开发,对于PHP开发有一个全面而粗浅的了解。又因为面试需要,在这里做一下总结。


  • 博客: http://www.cnblogs.com/jhzhu
  • 邮箱: jhzhuustc@gmail.com
  • 作者: 知明所以
  • 时间: 2015-05-14

  • 写在前面
  • PHP基础
  • PHP原理
    • 设计理念及特点
    • PHP四层体系
  • MVC 框架
  • OOP、设计模式、重构
  • Web前端技能
  • MySQL数据库技能
  • 服务器架设
  • 引用
  • 广告

写在前面

当我们谈到PHP开发,我们其实是在谈论网站数据库缓存session负载均衡等等等等一些列复杂技术的集合。所以,PHP的技能站也比一般得要长很多。

PHP基础

在这里,你需要了解的是:

  1. 在各个平台安装php并用php内置的web服务器成功的见到“Hello PHP”界面。
  2. PHP函数式编程语法,面向对象语法,命名空间。
  3. PHP标准库的熟悉。
  4. 调试工具:起码要知道xdebug的使用方法。
  5. 依赖包管理工具的安装、使用、原理,最常用的:composer,pear。
  6. 语法性能及原理:
    1. 万能的array。用法、实现原理、使用注意事项。(关键字:Hash Table)。
    2. 字符串链接的效率。
    3. 弱类型的实现原理。(关键字:zval)
  7. Http协议,Get/Post请求的不同。

PHP原理

设计理念及特点

  1. 多线程模型,请求独立。
  2. 弱类型语言。
  3. 引擎(Zend)+组件(ext)的组合模式。

PHP四层体系

  1. Zend引擎:Zend整体用纯C实现,是PHP的内核部分,它将PHP代码翻译(词法、语法解析等一系列编译过程)为可执行opcode的处理并实现相应的处理方法、实现了基本的数据结构(如hashtable、oo)、内存分配及管理、提供了相应的api方法供外部调用,是一切的核心,所有的外围功能均围绕Zend实现。
  2. Extensions:围绕着Zend引擎,extensions通过组件式的方式提供各种基础服务,我们常见的各种内置函数(如array系列)、标准库等都是通过extension来实现,用户也可以根据需要实现自己的extension以达到功能扩展、性能优化等目的(如贴吧正在使用的PHP中间层、富文本解析就是extension的典型应用)。
  3. Sapi:Sapi全称是Server Application Programming Interface,也就是服务端应用编程接口,Sapi通过一系列钩子函数,使得PHP可以和外围交互数据,这是PHP非常优雅和成功的一个设计,通过sapi成功的将PHP本身和上层应用解耦隔离,PHP可以不再考虑如何针对不同应用进行兼容,而应用本身也可以针对自己的特点实现不同的处理方式。
  4. 上层应用:这就是我们平时编写的PHP程序,通过不同的sapi方式得到各种各样的应用模式,如通过webserver实现web应用、在命令行下以脚本方式运行等等。

MVC 框架

  1. MVC理论。
  2. PHP模板。
  3. 常见的开源MVC框架,至少对其中一种有深入研究。

OOP、设计模式、重构

  1. 面向对象编程的基础:继承、封装、多态。
  2. 常见的设计模式及应用场景。参考
  3. 对代码的坏味道有敏锐的嗅觉,掌握基本的重构方法。

Web前端技能

  1. HTML/CSS/JavaScript 基础。
  2. 缓存,Cookie,Session原理和使用。

MySQL数据库技能

  1. MySQL安装和配置
  2. MySQL增删改查基本语法
  3. 数据库设计原则和常见的技巧
  4. MySQL性能诊断和优化
  5. 分布式数据库设计、数据库备份和恢复

服务器架设

  1. Linux常用命令。
  2. dns,cdn,缓存,带宽等资源的合理利用。
  3. nginx,apache安装和配置。
  4. 图床的架设。(关键字:EvaCloudImage)

引用

  1. PHP The Right Way
  2. PHP底层的运行机制与原理
  3. A Baseline for Front-End Developers
  4. 代码重构
  5. 一次完整的HTTP事务是怎样一个过程?

广告

好吧,下面是广告时间:

【Color国际青年公寓】是麦芒资产旗下的主打项目,一个面向租房市场的O2O项目。 简单来说:就是将现有出租房统一包装之后再分租给客户,统一规范管理;然后利用租客的天然流量优势,打造更加丰富的O2O生活闭环。面向群体是中等以上收入的年轻人。
我们的创始团队来自于阿里巴巴、美国雅虎、完美世界、魅族等一线企业,线下也有10多年地产中介经验的人才加盟。核心创始人已多次创业。
丰富的创业经验,千万级的天使融资,为您的未来提供了更有力的保证!
只要您认同我们的文化,有舍我其谁的自信,就果断向我们砸简历吧:hr@color520.com,待遇绝对超过BAT。详情见:Color国际青年公寓

1楼快乐八哥
最开始的链接出错了。http://www.cnblogs.com/jhzhu/p/color520.com。
Re: 知明所以
@快乐八哥,感谢告知,已改。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

How to make PHP applications fasterHow to make PHP applications fasterMay 12, 2025 am 12:12 AM

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

PHP Performance Optimization Checklist: Improve Speed NowPHP Performance Optimization Checklist: Improve Speed NowMay 12, 2025 am 12:07 AM

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

PHP Dependency Injection: Improve Code TestabilityPHP Dependency Injection: Improve Code TestabilityMay 12, 2025 am 12:03 AM

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

PHP Performance Optimization: Database Query OptimizationPHP Performance Optimization: Database Query OptimizationMay 12, 2025 am 12:02 AM

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment