资源描述:
《主流php框架间的比较(comparison between mainstream php frameworks)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、主流php框架间的比较(ComparisonbetweenmainstreamPHPframeworks)ComparisonbetweenmainstreamPHPframeworks(ZendFramework,CakePHP,CodeIgniter,Symfony,ThinkPHP,FleaPHP)[ZendFramework]Advantage:ZendFrameworkusesalargenumberofobject-orientednewfeaturesinPHP5:interfaces,exceptions,abstractclasses,SPL,an
2、dsoforth.TheapplicationofthesethingsgivesZendFrameworkahighdegreeofmodularityandflexibility.Atthesametime,becausestrictlyfollowthe"programtointerface"and"singleobjectresponsibility"principle,sothattheZendFrameworkisexpectedtobecomeanexcellententerpriseapplicationdevelopmentframework.Th
3、eofficialproduced,withmuchofthelibraryframeworkitself,manydesignpatternsareusedtowrite,thearchitectureisveryelegant,mediumefficiency;theMVCdesignisrelativelysimple,withtheroutingfunction,configurationfilesmorepowerful(XMLandPHPtoINI),libraryisverypowerful,isallintheframeworkofPHPfuncti
4、onsincludingthemostcomprehensive,itisnotonlyaframework,isabiglibrary(insteadofPEAR),whichisthemainfeatureofititcandirectlysupporttheModellayer;inadditiontodatabaseoperationsoutside(theratioofCodeIgniterandCakePHPstrong),andcanusetheLoaderfunctiontoloadeasilyothernewlyaddedClaSS;Cacheis
5、verypowerful,fromthefronttotherearCacheCachesupport,Memcache,APC,Cachebackendsupport,SQLitefilesandsoon;thedatabaseoperationfunctionisverypowerful,supportsavarietyofdriver(adapter).Thewholedocumentis,inthedomesticcommunityisverymature,andmanyWeb2sitesinuse,thecostoflearningmedium.Short
6、coming:TheMVCfunctionisrelativelyweak,toachieveasimpleViewlayer(likenothing),thefrontendofthepagecannotbeverypowerful.Noautomationscript,creatinganapplication,includingtheentrancedocuments,allmustbeconstructedmanually,entrycostishigh.Forasimpleandsmallproject,ZendFrameworkcannotonlyimp
7、rovetheefficiencyofdevelopment.Duetotheapplicationofalargenumberofobject-orienteddesignandnewfeaturesofPHP5intheframework,thedevelopersputforwardhigherrequirements,whichindirectlyincreasedthedevelopmentcostoftheproject.Forlargerprojectsandenterpriseapplications,ZendFrameworkisagoodfo