search
HomeBackend DevelopmentPHP Tutorial PHP框架,该怎么处理

PHP框架,该怎么处理

Jun 13, 2016 pm 01:29 PM
frameworkphpquotthinkphpzend

PHP框架
新手。。
现在一般PHP开发多数用什么框架开发。
小型网站,中型网站,大型网站。
分别用那些框架开发比较好。

------解决方案--------------------
新手的话,建议学ci
------解决方案--------------------
建议什么框架都不用!
------解决方案--------------------

探讨

建议什么框架都不用!

------解决方案--------------------
探讨

引用:

建议什么框架都不用!


也别用那些封装的数据库操作类.

------解决方案--------------------
2,3,4楼的话纯属扯淡,可以无视。这就是“高手”的通病,自以为是,目空一切,眼高于顶。
------解决方案--------------------
一个成熟的开源产品,一般都不会用框架。

如果你还不会基本php开发建议先不用
如果你会了,并且打算用一个框架,可以选一个学一下。例如thinkphp,zend framework ,yii,cake,ci之类的。这个主要是个人喜好
------解决方案--------------------
一个成熟的开源产品,一般都不会用框架。

如果你还不会基本php开发建议先不用
如果你会了,并且打算用一个框架,可以选一个学一下。例如thinkphp,zend framework ,yii,cake,ci之类的。这个主要是个人喜好
------解决方案--------------------
探讨

2,3,4楼的话纯属扯淡,可以无视。这就是“高手”的通病,自以为是,目空一切,眼高于顶。

------解决方案--------------------
探讨

2,3,4楼的话纯属扯淡,可以无视。这就是“高手”的通病,自以为是,目空一切,眼高于顶。

------解决方案--------------------
任何语言所谓的框架都是坑爹的,写代码就那么一回事,别人能写,我们也能写,别人思想好我们学习借鉴,但直接把人家的代码当作圣经膜拜就需要掂量掂量它是否足够简单可信赖了。

一门语言之上开发的东西都是人开发的,只有“库”的概念,而且绝大多数库都很糟烂,只有少数几个世界有名的名牌库才是被大家放心并且热心甘愿俯首称臣的。
------解决方案--------------------
鉴于目前反框架派回帖较多, 
跳出来平衡一下, 
当然,我是框架派....

还是那句话, 
"框架,我只推荐Zend..."
------解决方案--------------------
探讨

鉴于目前反框架派回帖较多,
跳出来平衡一下,
当然,我是框架派....

还是那句话,
"框架,我只推荐Zend..."

------解决方案--------------------
thinkphp用的比较多,不管是小型的,中性的,大型的都用thinkphp。看看我的这个网站用的就是thinkphp做的。
------解决方案--------------------
不可否认使用框架带来一定的开发效率,但这样会把你的程序捆绑在这个框架下。若是作为长期经营的专业网站的话还是不要使用框架了,应该有自己的一套库。这样不会受到如版权、版本、bug等很多方面的问题或约束。若是快速开发可以考虑使用框架。新手研究可以但不建议使用框架,使用框架不利于你的技术水平提高。
------解决方案--------------------
ci吧,我也在学
------解决方案--------------------
探讨

当所有的"高手"都认为不要用框架可能更好的时候, 是因为他们经历过...
那不是目空一切, 眼高于顶, 而是经历过的项目多了, 会发现选择任何一个框架都会禁锢你的思想, 所以, 那些稍大的项目, 都会选择实现一个精简的框架或者选择一个已有框架进行精简...
框架……
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 Performance Tuning for High Traffic WebsitesPHP Performance Tuning for High Traffic WebsitesMay 14, 2025 am 12:13 AM

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

Dependency Injection in PHP: Code Examples for BeginnersDependency Injection in PHP: Code Examples for BeginnersMay 14, 2025 am 12:08 AM

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

PHP Performance: is it possible to optimize the application?PHP Performance: is it possible to optimize the application?May 14, 2025 am 12:04 AM

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

PHP Performance Optimization: The Ultimate GuidePHP Performance Optimization: The Ultimate GuideMay 14, 2025 am 12:02 AM

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

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

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

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

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.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor