Test PHP frame
description
Transcript of Test PHP frame
PHP Frameworks Discussion
Leong Hean Hong (@hongster)#barcampmlk2
(CC) BYhttp://goo.gl/E6THH
Outline
What is an application framework?var x = diff(framework, library);Types of frameworksWhy should I use a framework?Why I should not use a framework?Factors to consider when choosing a framework
What is an application framework?
Used by software developer to implement structure of an application for a specific development environmentReduce overhead associated with common activities performed
x = diff(framework, library)
LibraryCollection of reusable code and data structuresFor a specific purpose (e.g. graphic, networking)
FrameworkConsist of multiple librariesFor a specific application type (e.g. game, web application)Define basic application flowDefine some patterns of interaction among components
Types of frameworks
Generic web applicationKohana, CodeIgniter, CakePHP, Zend, DooPHPbuatan malaysia
CMSDrupal, Joomla, Textpattern
Blog Wordpress
There are also frameworks for building forum, social network, CRM, ...
Why should I use a framework?
Save development effortI am a newbie programmerEase of integrating componentsLearn best practices, patterns
Why I should not use a framework?
Ooi, I only want a About Us, FAQ, and Product page.I want to know what I am doing, learn PHP.My application has a very specific requirement, existing frameworks might not be suitable
Factors to consider when choosing a framework
Learning curveCommunity, documentationActive developmentHow much work do I have to do? (Simplicity/flexibility v.s. Comprehensive)
What do you think?
Thoughts on Convention, Configuration
Convention Over Configuration makes "magic". What if the "magic" stands in my way?Is the configuration taking over my life?