php hoffman framework
DESCRIPTION
TRANSCRIPT
PHP Framework
Ford AntiTrust@ BarCamp Bangkok Winter
2008
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)
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
In PHP
PHP Hoffman Framework (HMF)
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)
Demo on HMF 0.1a rv.98
Today opening
Rv 2 nightly versionStarted @ December 3rd 2007
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
Architecture
Demo on HMF Rv 2 nightly version
Coming in 2 weekshttp://www.thaicyberpoint.com/
hmf