PHP Hoffman Framework(HMF) at Barcamp Bangkok 2
-
Upload
ford-antitrust -
Category
Technology
-
view
1.684 -
download
2
description
Transcript of 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/
What?
http://www.viewimages.com/Search.aspx?mid=3095718&epmid=1
What?
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
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
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
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
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)
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
Architecture | Rv. 2
Today
Rv. 3 (r84+1)
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
Demo
Thank You ;)
@FordAntiTrust
http://www.thaicyberpoint.com/ford/blog/hmf/
Code Hosting
http://code.google.com/p/hoffmanframework/