PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

16
PHP Hoffman Framework (HMF) @FordAntiTrust http://www.thaicyberpoint.com/ford/blog/hmf/ Code Hosting http://code.google.com/p/hoffmanframework/

description

PHP Hoffman Framework (HMF) at Barcamp Bangkok 2, Thailand

Transcript of PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

Page 1: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

PHP Hoffman Framework(HMF)

@FordAntiTrusthttp://www.thaicyberpoint.com/ford/blog/hmf/

Code Hosting

http://code.google.com/p/hoffmanframework/

Page 2: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

What?

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

Page 3: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

What?

Page 4: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

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 5: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

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 6: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

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 7: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

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 8: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

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 9: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

History | Rv. 2 @ 1st Barcamp BKK

• Rv 2 = Revolution 2• GO PHP 5 (5.2)• 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 10: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

Architecture | Rv. 2

Page 11: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

Today

Page 12: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

Rv. 3 (r84+1)

Page 13: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

Today | Rv. 3

Core (Rv. 3 = Revolution 3)

• PHP 5 (5.2.6)

• Base on Zend FW 1.5.3

• Reflection Control

• MVC Pattern with Components base

• Cache

• Environment Configurations

– production

– development

– test

• Routing (w/mod_rewrite)

• Error Pages

• Debug Logging

• ORM (Zend_Db)

– Model Validation

• Access Control List (Zend_Acl)

• Fully Unicode support (UTF-8)

• Multilanguage (gettext)

• Components

– Form

– Img

– Upload

• View

– Masterpages

– Contentpages

Page 14: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2
Page 15: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

Demo

Page 16: PHP Hoffman Framework(HMF) at Barcamp Bangkok 2

Thank You ;)

@FordAntiTrust

http://www.thaicyberpoint.com/ford/blog/hmf/

Code Hosting

http://code.google.com/p/hoffmanframework/