Test PHP frame

10
PHP Frameworks Discussion Leong Hean Hong (@hongster ) #barcampmlk2 (CC) BY http://goo.gl/E6THH

description

PHP Framework

Transcript of Test PHP frame

Page 1: Test PHP frame

PHP Frameworks Discussion

Leong Hean Hong (@hongster)#barcampmlk2

(CC) BYhttp://goo.gl/E6THH

Page 2: Test PHP frame

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

Page 3: Test PHP frame

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

Page 4: Test PHP frame

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

Page 5: Test PHP frame

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, ...

Page 6: Test PHP frame

Why should I use a framework?

Save development effortI am a newbie programmerEase of integrating componentsLearn best practices, patterns

Page 7: Test PHP frame

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

Page 8: Test PHP frame

Factors to consider when choosing a framework

Learning curveCommunity, documentationActive developmentHow much work do I have to do? (Simplicity/flexibility v.s. Comprehensive)

Page 9: Test PHP frame

What do you think?

Page 10: Test PHP frame

Thoughts on Convention, Configuration

Convention Over Configuration makes "magic". What if the "magic" stands in my way?Is the configuration taking over my life?