search
HomeBackend DevelopmentPHP Tutorial国内常用的PHP框架有哪些?

注意是国内趋势,不是国外,php的框架太多了,学不过来,只能针对一个框架深入学习。只所以根据趋势来分析的话,一方面代表该框架的普及程度,另一方面,找工作也比较好找。特别是BAT哪些公司的技术选择。

回复内容:

注意是国内趋势,不是国外,php的框架太多了,学不过来,只能针对一个框架深入学习。只所以根据趋势来分析的话,一方面代表该框架的普及程度,另一方面,找工作也比较好找。特别是BAT哪些公司的技术选择。

其他的不是很清楚,听内部朋友说,处理内部自己的外,用的最多的是Yii1。

我们公司主框架用的是Zend Framework1,有几个项目用的是Zend Framework2.

不过现在用ZF2的项目都流产了。ZF2是我在内部主推的。后面项目启动后就不负责这块了。

当最后去看的时候,项目编写人员根本就没有ZF2的自带好的特性,连MVC都用的很少。

一问才知道ZF2框架太重,由于项目人员技术参差不齐,根本拿不下ZF2.

当时想着是公司内部框架,没有必要去考虑过多的性能问题,选择ZF2框架,只是想把大家的

编码给规范起来(编写内部规范文档,根本就没人记。),没想到最后成了这样。

题主可以了解一下国内公司招聘要求
流行的是:ThinkPHPCIYIIZend Framework 1
在BAT,php不是重点使用的编程语言。
知道baidu、weibo大量使用了Yaf,因为鸟哥就职过的原因。
360等大公司也会在内部或小型快速项目中使用了ThinkPHP

国内最常用的应该是CI和thinkPHP。

适合入门同时知名度也非常高的 codeigniter(CI)
国内的 thinkphp
企业级框架,大公司开发一些后台功能偏向使用的可能是 YiiZend Framework
这几个框架学好找工作应该没问题

@俊森 说的不错
建议CodeIgniter
用过ThinkPHP不是很喜欢

ThinkPHP(丑而快),yaf(少而快),phalcon(快),yii(慢)

thinkPHP yii ci

国内的话 一般公司基本就是 tp、ci、yii以及zend 还有一些不知名的小框架
bat 等会考虑效率问题, 所以一般会采用 yaf 之类的框架, 新浪内部就大量在使用。

另外 建议学习框架得有个大致的方向 要学习的是这个框架的优点 也要了解缺点, 框架的组成部分(部件), 看的多了上手任何一个框架都基本不是难事,从工作上来看也是,公司用什么你就得适应 除非你是老大,可以自己决定选型。 不要靠着会某某框架去找公司, 这样的公司 对自己也没什么提高。

此外,要想提高技术水平,建议好好看几个国外框架, 了解最新的趋势以及一些行业标准 psr、composer 等等

可以是如下方向 (tp|ci)->yii->(laravel|symfony)

百度很多产品线用的自己的内部框架,不属于上面提到的任何一个。

https://github.com/lloydzhou/router
可以看看,算不上框架,只是个路由控制器,很精炼

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

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools