php hoffman framework

17
PHP Framework Ford AntiTrust @ BarCamp Bangkok Winter 2008

Upload: ford-antitrust

Post on 15-Jan-2015

3.449 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: PHP Hoffman Framework

PHP Framework

Ford AntiTrust@ BarCamp Bangkok Winter

2008

Page 2: PHP Hoffman Framework

About Speaker• Education

– 2003 – 2006• Bachelor of Science (Computer Science), Naresuan University, Thailand

– 1991 – 2003• High School and Junior High School, La Salle Chotiravi Nakhonsawan, Thailand

• Full-time– Database Administrator at BBMT-BKK.

• Freelances – Software Designed & Consultant– Database Consultant – Web Developer with PHP – SEO Consultant

• Other– Co-Founder at Siampod.com– Staff and Developer at ThaiAdmin.org– Blogger at Ford AntiTrust’Blog (http://www.thaicyberpoint.com/ford/blog)

Page 3: PHP Hoffman Framework

What?

http://www.viewimages.com/Search.aspx?mid=3095718&epmid=1

Page 4: PHP Hoffman Framework

What?

Page 5: PHP Hoffman Framework

What?• Reusable design• Application Programming Interface and Code

libraries• Helper scripting program for build software

application• Standard structure• Top layer on Software Developer Technology

Stack

Page 6: PHP Hoffman Framework

Why?• High productivity (Speed++)• Good Standard Code & Standard Structure • Smooth team support• Easy maintenance and long term support• Don't repeat yourself (DRY)

DRY is a core principle of Andy Hunt and Dave Thomas's book The Pragmatic Programmer.

• You Ain't Gonna Need It

Page 7: PHP Hoffman Framework

In PHP

Page 8: PHP Hoffman Framework

PHP Hoffman Framework (HMF)

Page 9: PHP Hoffman Framework

History | Announce 0.1a rv.15 • January 6th, 2007• http://www.thaicyberpoint.com/ford/blog/id/272/• Like RoR

– MVC Pattern– Routing URL (full control by mod_rewrite)– Add-on (config by XML)

• FCKeditor,LightBox and Reflection

– Wrapper Class like Java

• PHP 4+ Support • ASCII only

Page 10: PHP Hoffman Framework

History | 0.1a rv.85 • January 20th, 2007• Like RoR

– MVC Pattern– Routing URL (full control by mod_rewrite)– Add-on (config by XML)

• FCKeditor, PHPMailer, LightBox, HTLM Form Validation and Reflection– Wrapper Class like Java– Model like ActiveRecord in some features– Multilanguage

• PHP 4+ Support • Fixed bug• ASCII only• Access control list with XML• Production App

– http://shop.thaiadmin.org

Page 11: PHP Hoffman Framework

History | 0.1a rv.98 • August 28th, 2007• Like RoR

– MVC Pattern– Routing URL (full control by mod_rewrite)– Add-on (config by XML)

• FCKeditor, PHPMailer, LightBox, HTLM Form Validation and Reflection– Wrapper Class like Java– Model like ActiveRecord in some features– Multilanguage

• PHP 4+ Support • Fixed bug• ASCII and Unicode• Production App

– http://www.wscxv.org (register form and user profile)– http://www.tmbyip.com (register form)

Page 12: PHP Hoffman Framework

Demo on HMF 0.1a rv.98

Page 13: PHP Hoffman Framework

Today opening

Rv 2 nightly versionStarted @ December 3rd 2007

Page 14: PHP Hoffman Framework

Today | Rv 2 nightly version• Rv 2 = Revolution 2• GO PHP 5 (5.2)• Redesign Architecture• Use MVC Pattern• Cache• Fusion

– Drupal (Routing concept, config by XML)– .NET (from Zend Framework)– RoR (from ActiveRecord on Doctrine, Model layer = LogicModel)– Smarty (View layer = RenderView)

• Rewrite controller (FlowComtroller)• Access Control List with Zend_Acl

• Fully Unicode support• Multilanguage on Extension (not build-in)• Extension

– Multilanguage , FCKeditor, PHPMailer, LightBox, HTLM Form Validation and Reflection

Page 15: PHP Hoffman Framework

Architecture

Page 16: PHP Hoffman Framework

Demo on HMF Rv 2 nightly version

Page 17: PHP Hoffman Framework

Coming in 2 weekshttp://www.thaicyberpoint.com/

hmf