SlideShare a Scribd company logo
Intro to H/MVC Frameworks
               CHRISTOPHER JOHN CUBOS
   WEB DESIGN AND DEVELOPMENT MONTH (AUGUST 2011)
    COLLEGES & UNIVERSITIES DAVAO CITY PHILIPPINES




              PHP H/MVC Frameworks Aug 2011
                    www.silicongulf.com
Introduction to PHP H/MVC Frameworks by www.silicongulf.com
Who is Chris Cubos
  • Started programming at age 10 (1985)
  • Created his first website (1995)
  • The first web designer/developer in Mindanao
  • Been doing this for 26 years and still learning
  • Won the first website competition in the Philippines
    (1995)
  • Developed his first CD-ROM application (1996)
  • Developed his first flash site (1995)

  … forward to the present


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Tech Stuff
  • Languages: Q/BASIC/A, Pascal, C, C++,
    Assembly, PHP, JavaScript, VBScript, ASP,
    AutoLISP, Lingo, ActionScripting, etc…
  • PHP Frameworks: CodeIgniter, FuelPHP
  • CMS: Wordpress, Drupal, Joomla, Mambo, etc
  • Applications: Photoshop, Dreamweaver,
    Illustrator, AfterEffects, Premiere, CS, etc…



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
1st   Web Development Company
  • Won the Philippine Webby Awards for
    Multimedia Category
  • Won Davao Web Design Competition in multiple
    categories and the overall best web design
  • 1st Company to develop flash based applications
  • 1st Company to develop multimedia CD-ROMs
  • 1st Company to develop web portals
  • 2nd Company to develop a PH search engine
  • Won multiple awards in web design, logo design

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Yes the present
  • He currently devotes his time helping students
    enhance their skills with the non-profit
    organization called the SiliconGulf Initiative
  • He is also organizing large I.T. events in the
    Davao and currently organized the most number
    of I.T. events in a single month.




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Brewing
  • We are currently developing the first game-based
    training center in Mindanao
  • Multiple mobile apps and games
  • Organizing multiple upcoming I.T. events




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
MVC Defined
  • Model–view–controller (MVC) is a software
    architecture, currently considered an
    architectural pattern used in software
    engineering. The pattern isolates "domain
    logic" (the application logic for the user) from the
    user interface (input and presentation),
    permitting independent development, testing
    and maintenance of each (separation of
    concerns).

  Source: wikipedia.org

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
How does MVC work?


                                Controller




                   View                      Model


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
History
  • Not a new concept
  • First described on 1979 MVC by Trygve
    Reenskaug
  • He was working on Smalltalk at Xerox PARC
  • The original implementation is described in
    depth in the influential paper "Applications
    Programming in Smalltalk-80: How to use
    Model–View–Controller"


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
The Model
  • The model manages the behavior and data of the
    application
  • Responds to requests for information from both
    the controller and view
  • Business and data logic




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
The View
  • Displays the content of the site.
  • A view can be a template or an element of a site
  • A model-view has a business logic inside it but
    has design elements as well
  • Translates raw data to readable user interface




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
The Controller
  • The controller receives user input and initiates
    a response by making calls on model objects.
  • A controller accepts input from the user and
    instructs the model and viewport to perform
    actions based on that input.




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Why use an MVC Framework
  •   Faster development time
  •   Use and reuse tested code
  •   Automation (ORM, Auth, generators)
  •   Maintainability
  •   Community driven
  •   Separation of code and design
  •   Agile development
  •   Modular development


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
PHP Web Frameworks
  •   Zend Framework
  •   CodeIgniter
  •   Symfony
  •   CakePHP
  •   Yii
  •   Kohana
  •   FuelPHP
  •   CMS Frameworks (Drupal, Wordpress, Joomla)


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Other PHP Frameworks
  •   Lithium – for people who hate frameworks
  •   Akelos – ported from ruby on rails
  •   Seagull – a mature OOP framework
  •   Lion – a dual MVC+MVP architecture




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Introduction to PHP H/MVC Frameworks by www.silicongulf.com
Choosing PHP as a platform
  •   Easy to learn
  •   Easy to install in different operating systems
  •   The largest number developers
  •   More than 75% of websites run on PHP
  •   Open Source
  •   Powerful
  •   Tons of developer tools available
  •   Huge resources available


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Detailed Framework Guide
  A quick run through over top PHP frameworks




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Zend Framework
  •   Open source (New BSD License)
  •   Object oriented
  •   MVC architecture
  •   PHP 5.2.4+
  •   Database Agnostic
  •   http://www.zendframework.com/




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Zend Framework
  •   Provides a console tool for Rapid Development
  •   Generates models, controllers, layouts, & views
  •   Poor documentation
  •   No automated SQL generation
  •   No automated CRUD functions
  •   Default tutorials don’t provide basic
      authentication and security related examples



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
CodeIgniter
  •   Not fully open source (CodeIgniter License)
  •   Object oriented
  •   MVC architecture
  •   PHP 5.1.6+
  •   Database Agnostic
      – No native support for SQLite3
  • http://codeigniter.com/



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
CodeIgniter
  •   No console tool
  •   No automated generation tool
  •   Very small footprint (2.2mb)
  •   Video tutorials only
  •   Tutorials and documentation (outdated)
  •   Default tutorials don’t provide basic
      authentication and security related examples



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Symfony
  •   Open source (MIT License)
  •   Object oriented
  •   MVC architecture
  •   PHP 5.2.4+
  •   Database Agnostic
      – Uses doctrine or propel for Object Relational
        Mapping (ORM) layer
  • http://symfony.com/


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Symfony
  • Powerful console tool (symfony)
  • Automagically generates all elements including
    sql queries (from YAML source)
  • Provides extremely detailed tutorials for all
    functionality
  • Tutorials work as documented
  • The basic tutorial includes admin functionality as
    well as authentication and security information
  • Plugins are easy to install using console tool


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
CakePHP
  •   Open source (MIT License)
  •   Object oriented
  •   MVC architecture
  •   PHP4 (4.3.2+)
  •   Database Agnostic
      – Does not natively support SQLite3
  • http://cakephp.org/



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
CakePHP
  • Console tool (cake)
  • Cake bake generates code if a database is defined
    including models, views, and controllers for the
    tables in the database
  • Cake schema is used for database backup/restore
    functionality
  • Separate tutorials for a weblog and ACL
    controlled applications
  • Tutorials work as documented

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Yii Framework
  •   Open source (BSD License)
  •   Object oriented
  •   MVC architecture
  •   PHP 5.3
  •   Database Agnostic
  •   http://www.yiiframework.com/




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Yii Framework
  • Powerful console tool (yiic)
  • Does not generate SQL
  • Uses Gii (web based code generator) for CRUD
    operations
  • Default Yii apps as generated by yiic includes
    auth functionality and three basic pages
  • Tutorials are regularly updated.



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Kohana
  •   Open source (BSD License)
  •   Originally based on CodeIgniter, but no more
  •   Object oriented
  •   H/MVC architecture
  •   PHP 5.1.5
  •   Database Agnostic
      – Does not natively support SQLite3
  • http://kohanaframework.org/


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Kohana
  •   No console tool
  •   No automated generation tool for any function
  •   Small footprint (1.1mb)
  •   Documentation is poor
  •   Tutorials and documentation poor
  •   Default tutorials don’t provide basic
      authentication and security related examples



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Kohana
  •   No console tool
  •   No automated generation tool for any function
  •   Small footprint (1.1mb)
  •   Documentation is poor
  •   Tutorials and documentation poor
  •   Default tutorials don’t provide basic
      authentication and security related examples



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
FuelPHP
  •   Open source (MIT License)
  •   Based on ideas of multiple frameworks
  •   Object oriented
  •   H/MVC architecture
  •   PHP 5.3+
  •   Database Agnostic
  •   http://www.fuelphp.com



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
FuelPHP
  • Powerful command line automation “OIL”
     –   Generate – Build MVC components, migrations, scaffolding
     –   Refine – run migration and custom functions
     –   Package – install and remove packages
     –   Console – Test your code in real time with an interactive shell
     –   Smallest footprint (865kb)
  • New framework
  • Tutorials and docs is sufficient but
  • Default tutorials don’t provide basic authentication and
    security related examples


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
How to you may choose
  • You will be developing so choose the one that
    suits your style and preferences
  • Availability of Libraries
  • Documentation and sample codes
  • Available tools IDE, Automation, Testing
  • Community activity
  • Ease of hiring people who know the platform



PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
How I choose a Framework
  •   Quality of code is very important
  •   Coding standards for a one-mind team
  •   Lightweight
  •   Performance
      – Load what is needed
      – Short travel for each execution of code
  • Easy to create your own libraries
  • Responsive community
  • Flexibility to adapt to MY style

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Introduction to PHP H/MVC Frameworks by www.silicongulf.com
What’s next
  •   Choose a framework
  •   Develop great applications
  •   Become a millionaire
  •   Party all day
  •   Share your knowledge
  •   Grow!!!




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Thanks
  Oops… There’s more




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Full year of IT Events
  August 2011: Web Development Month
  September 2011: Mobile Application Month
  October 2011: Animation Month
  November 2011: Bloggers Month
  December 2011: SEO Month
  January 2012: Technopreneurship Month
  February 2012: I.T. Education Month
  March 2012: I.T. Career Month
  April 2012: Gaming Month
  May 2012: Graphic Design Month
  June 2012: Hacking and Network Security Month
  July 2012: Software Development Month

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
August I.T. Events by PGO
  University of Southeastern Philippines (USEP)
  Friday, August 12 · 9:00am - 11:30am
  http://www.facebook.com/event.php?eid=229646943743096

  John Paul II College (JP2C)
  Saturday, August 13 · 9:00am - 4:00pm
  http://www.facebook.com/event.php?eid=220035684709122

  University of Mindanao (UM)
  Wednesday, August 17 · 1:00pm - 5:00pm
  http://www.facebook.com/event.php?eid=245697658786703

  University of Immaculate Conception (UIC)
  Saturday, August 20 · 1:00pm - 5:00pm
  http://www.facebook.com/event.php?eid=231713253532167

  ACLC
  Monday, August 22 · 1:00pm - 4:00pm
  http://www.facebook.com/event.php?eid=231458190229578


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
August I.T. Events by PGO
  Holy Cross (HCDC)
  Tuesday, August 23 · 3:00pm - 6:00pm
  http://www.facebook.com/event.php?eid=253809011309471

  InterCity College of Science and Technology (ICST)
  Wednesday, August 24 · 9:00pm - 11:00pm
  http://www.facebook.com/event.php?eid=225237414194879

  AMA Computer College
  Thursday, August 25 · 9:30am - 1:00pm
  http://www.facebook.com/event.php?eid=138109472943706

  STI College
  Friday, August 26 · 1:00am - 4:00pm
  http://www.facebook.com/event.php?eid=124462760983852


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Competition
  On-the-spot Student Web Design Competition
  August 27, 2011
  http://www.facebook.com/event.php?eid=241281559236739

  Entries can be found at
  http://www.silicongulf.com/competitions/web_design




PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Our Loving Supporters
  •   The SiliconGulf Initiative
  •   Davao IT
  •   Adobe User Group
  •   PHP Philippines
  •   Developers, Entrepreneurs, Artists of Davao
  •   SEO-Philippines
  •   The IT School with no name yet
  •   Philippine Global Outsourcing


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Thanks
  To all speakers, PHP framework developers, our
   team at Philippine Global Outsourcing, students
   of all participating schools

  To the Adobe Development Team for this
   wonderful piece of software.

  Learn from the best www.silicongulf.com


PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Contact
  2nd Floor Door #8 Andreliz Bldg
  #238 Araullo Extension
  8000 Davao City Philippines
  philippineoutsourcing@gmail.com
  www.philippineglobaloutsourcing.com

  +63 916 477 9322 (globe)
  +63 907 775 6544 (smart)
  +63 922 551 4009 (sun)
  +63 923 725 4512 (sun)
  +63 82 224 1040 (landline)

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Copyright
    This reference material is exclusively distributed to the
    students of SiliconGulf Campus and should not be
    distributed, transmitted, or shared without the prior written
    consent of Christopher John Cubos http://
    www.philippineglobaloutsourcing.com/chriscubos ,
    SiliconGulf http://www.silicongulf.com/ or Philippines
    Outsourcing http://www.philippineglobaloutsourcing.com/ .

    This class material should be discussed by a trained
    instructor from SiliconGulf to maximize the learning and
    understanding of the topic. Others belong to their respective
    copyright holders.

    © Copyright 2011 SiliconGulf Campus and Christopher John
    Cubos. All Rights Reserved.
PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Disclaimer
  • Course technology and the author specifically
    disclaim any and all other warranties, either
    express or implied, including warranties of
    merchantability, suitability to a particular task or
    purpose, or freedom from errors.
  • Some states do not allow for exclusion of implied
    warranties or limitation of incidental or
    consequential damages, so these limitations
    might not apply to you.

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
SiliconGulf Campus
    SiliconGulf Campus is one of the pioneers of game based learning
    system in the Philippines. Our goal is to combined complex theories
    with fun and excitement of playing games.

    SiliconGulf Campus
    2nd Floor Door #8 Andreliz Bldg.
    #238 Araullo Extension
    8000 Davao City Philippines
    silicongulfcampus@gmail.com
    www.silicongulf.com
    +63 916 477 9322 (globe)
    +63 907 775 6544 (smart)
    +63 922 551 4009 (sun)
    +63 923 725 4512 (sun)
    +63 82 224 1040 (landline)

PHP H/MVC Frameworks Aug 2011
www.silicongulf.com
Your First Animation
Clicking your way through Adobe Edge

More Related Content

PPTX
Developing Complex WordPress Sites without Fear of Failure (with MVC)
PPT
1ST TECH TALK: "Yii : The MVC framework" by Benedicto B. Balilo Jr.
PDF
HTML5のご紹介
PDF
Dart Past Your Competition by Getting Your Digital Experience into Market Fas...
PDF
Salvatore Laisa - Da Angular a React - Un viaggio inaspettato
KEY
Everything you need to know about HTML5 in 15 min
PDF
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
PPTX
Highlights from microsoft ignite 2015
Developing Complex WordPress Sites without Fear of Failure (with MVC)
1ST TECH TALK: "Yii : The MVC framework" by Benedicto B. Balilo Jr.
HTML5のご紹介
Dart Past Your Competition by Getting Your Digital Experience into Market Fas...
Salvatore Laisa - Da Angular a React - Un viaggio inaspettato
Everything you need to know about HTML5 in 15 min
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Highlights from microsoft ignite 2015

What's hot (18)

ZIP
Using Features
PPTX
Wintellect - Devscovery - Portable Class Library
PDF
Working effectively with OpenShift
PDF
Developing Great Apps with Apache Cordova
PPTX
Switching to Oracle Document Cloud
PDF
Clean Architecture Essentials - Stockholm Software Craftsmanship
PDF
Clean Architecture Essentials @ivanpaulovich
PDF
DDD Tactical Design with Clean Architecture - Ivan Paulovich
PDF
Lessons learned from building Eclipse-based add-ons for commercial modeling t...
PDF
White Paper : ASP.NET Core AngularJs 2 and Prime
PPTX
osCaddie Drupal/Alfresco Integration Technical Update
PPTX
Rapid With Spring Roo
PPTX
Staying connected: An Overview of Announcements from Microsoft’s Connect();
PPTX
STC Summit 2015: API Documentation, an Example-Based Approach
PPTX
Building rich interface components with SharePoint
PDF
News From the Front Lines - an update on Front-End Tech
PDF
[20160314][CUHK][CSCI4140]Life of an Agile Team]
PPTX
Publishing API documentation -- Presentation
Using Features
Wintellect - Devscovery - Portable Class Library
Working effectively with OpenShift
Developing Great Apps with Apache Cordova
Switching to Oracle Document Cloud
Clean Architecture Essentials - Stockholm Software Craftsmanship
Clean Architecture Essentials @ivanpaulovich
DDD Tactical Design with Clean Architecture - Ivan Paulovich
Lessons learned from building Eclipse-based add-ons for commercial modeling t...
White Paper : ASP.NET Core AngularJs 2 and Prime
osCaddie Drupal/Alfresco Integration Technical Update
Rapid With Spring Roo
Staying connected: An Overview of Announcements from Microsoft’s Connect();
STC Summit 2015: API Documentation, an Example-Based Approach
Building rich interface components with SharePoint
News From the Front Lines - an update on Front-End Tech
[20160314][CUHK][CSCI4140]Life of an Agile Team]
Publishing API documentation -- Presentation
Ad

Viewers also liked (20)

PPTX
PHP Templating Systems
PDF
Grokking regex
PDF
Don't Fear the Regex - Northeast PHP 2015
PDF
/Regex makes me want to (weep|give up|(╯°□°)╯︵ ┻━┻)\.?/i
PPT
PHP Framework
PDF
Principles of MVC for PHP Developers
PDF
Parsing JSON with a single regex
PPTX
MVC Frameworks for building PHP Web Applications
PPTX
Regular Expression (Regex) Fundamentals
PDF
PHP MVC Tutorial
ODP
A Good PHP Framework For Beginners Like Me!
PDF
Php 2 - Approfondissement MySQL, PDO et MVC
PPT
Why MVC?
PDF
2 08 client-server architecture
PPTX
Client server architecture
DOC
Client Server Architecture
PPTX
Client server architecture
PPT
Php Presentation
PPT
Introduction to PHP
PHP Templating Systems
Grokking regex
Don't Fear the Regex - Northeast PHP 2015
/Regex makes me want to (weep|give up|(╯°□°)╯︵ ┻━┻)\.?/i
PHP Framework
Principles of MVC for PHP Developers
Parsing JSON with a single regex
MVC Frameworks for building PHP Web Applications
Regular Expression (Regex) Fundamentals
PHP MVC Tutorial
A Good PHP Framework For Beginners Like Me!
Php 2 - Approfondissement MySQL, PDO et MVC
Why MVC?
2 08 client-server architecture
Client server architecture
Client Server Architecture
Client server architecture
Php Presentation
Introduction to PHP
Ad

Similar to Introduction to PHP H/MVC Frameworks by www.silicongulf.com (20)

PDF
CodeIgniter - PHP MVC Framework by silicongulf.com
PDF
FuelPHP - a PHP HMVC Framework by silicongulf.com
PDF
Yii PHP MVC Framework presentation silicongulf.com
PDF
symfony_from_scratch
PDF
symfony_from_scratch
PPTX
The happy developer - SharePoint Framework React and Mindfulness
PPTX
AFNetworking
PPTX
How to build a JavaScript toolkit
PPTX
Uncovering the Latest in SharePoint Development
PPTX
P H P Framework
PDF
End to-End SPA Development Using ASP.NET and AngularJS
PPT
Selenium for everyone
PPTX
Move past bootstrap and build our lightweight responsive framework w.v1.2
PPTX
Top 10 php frameworks in 2021
PDF
Drupal 8 - What’s cooking?
PDF
Best PHP Frameworks
PDF
Codeigniter
PDF
Top 6 php framework
DOC
Adobe flex online training
PPTX
Introduction to PowerShell for SharePoint Admins and Developers
CodeIgniter - PHP MVC Framework by silicongulf.com
FuelPHP - a PHP HMVC Framework by silicongulf.com
Yii PHP MVC Framework presentation silicongulf.com
symfony_from_scratch
symfony_from_scratch
The happy developer - SharePoint Framework React and Mindfulness
AFNetworking
How to build a JavaScript toolkit
Uncovering the Latest in SharePoint Development
P H P Framework
End to-End SPA Development Using ASP.NET and AngularJS
Selenium for everyone
Move past bootstrap and build our lightweight responsive framework w.v1.2
Top 10 php frameworks in 2021
Drupal 8 - What’s cooking?
Best PHP Frameworks
Codeigniter
Top 6 php framework
Adobe flex online training
Introduction to PowerShell for SharePoint Admins and Developers

More from Christopher Cubos (6)

PDF
VMobile myTurf 2.0
PDF
Vmobile quick presentation kathleen fritz canada
PDF
Philippine Global Outsourcing Company Presentation for Student Career Talk
PDF
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...
PDF
Game-based learning - Unschooling the Next Generation - SiliconGulf.com
PDF
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.com
VMobile myTurf 2.0
Vmobile quick presentation kathleen fritz canada
Philippine Global Outsourcing Company Presentation for Student Career Talk
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...
Game-based learning - Unschooling the Next Generation - SiliconGulf.com
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.com

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
Empathic Computing: Creating Shared Understanding
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
cuic standard and advanced reporting.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced IT Governance
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Advanced Soft Computing BINUS July 2025.pdf
Transforming Manufacturing operations through Intelligent Integrations
Empathic Computing: Creating Shared Understanding
Reach Out and Touch Someone: Haptics and Empathic Computing
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
madgavkar20181017ppt McKinsey Presentation.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
cuic standard and advanced reporting.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced IT Governance
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
Review of recent advances in non-invasive hemoglobin estimation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Per capita expenditure prediction using model stacking based on satellite ima...

Introduction to PHP H/MVC Frameworks by www.silicongulf.com

  • 1. Intro to H/MVC Frameworks CHRISTOPHER JOHN CUBOS WEB DESIGN AND DEVELOPMENT MONTH (AUGUST 2011) COLLEGES & UNIVERSITIES DAVAO CITY PHILIPPINES PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 3. Who is Chris Cubos • Started programming at age 10 (1985) • Created his first website (1995) • The first web designer/developer in Mindanao • Been doing this for 26 years and still learning • Won the first website competition in the Philippines (1995) • Developed his first CD-ROM application (1996) • Developed his first flash site (1995) … forward to the present PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 4. Tech Stuff • Languages: Q/BASIC/A, Pascal, C, C++, Assembly, PHP, JavaScript, VBScript, ASP, AutoLISP, Lingo, ActionScripting, etc… • PHP Frameworks: CodeIgniter, FuelPHP • CMS: Wordpress, Drupal, Joomla, Mambo, etc • Applications: Photoshop, Dreamweaver, Illustrator, AfterEffects, Premiere, CS, etc… PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 5. 1st Web Development Company • Won the Philippine Webby Awards for Multimedia Category • Won Davao Web Design Competition in multiple categories and the overall best web design • 1st Company to develop flash based applications • 1st Company to develop multimedia CD-ROMs • 1st Company to develop web portals • 2nd Company to develop a PH search engine • Won multiple awards in web design, logo design PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 6. Yes the present • He currently devotes his time helping students enhance their skills with the non-profit organization called the SiliconGulf Initiative • He is also organizing large I.T. events in the Davao and currently organized the most number of I.T. events in a single month. PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 7. Brewing • We are currently developing the first game-based training center in Mindanao • Multiple mobile apps and games • Organizing multiple upcoming I.T. events PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 8. MVC Defined • Model–view–controller (MVC) is a software architecture, currently considered an architectural pattern used in software engineering. The pattern isolates "domain logic" (the application logic for the user) from the user interface (input and presentation), permitting independent development, testing and maintenance of each (separation of concerns). Source: wikipedia.org PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 9. How does MVC work? Controller View Model PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 10. History • Not a new concept • First described on 1979 MVC by Trygve Reenskaug • He was working on Smalltalk at Xerox PARC • The original implementation is described in depth in the influential paper "Applications Programming in Smalltalk-80: How to use Model–View–Controller" PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 11. The Model • The model manages the behavior and data of the application • Responds to requests for information from both the controller and view • Business and data logic PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 12. The View • Displays the content of the site. • A view can be a template or an element of a site • A model-view has a business logic inside it but has design elements as well • Translates raw data to readable user interface PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 13. The Controller • The controller receives user input and initiates a response by making calls on model objects. • A controller accepts input from the user and instructs the model and viewport to perform actions based on that input. PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 14. Why use an MVC Framework • Faster development time • Use and reuse tested code • Automation (ORM, Auth, generators) • Maintainability • Community driven • Separation of code and design • Agile development • Modular development PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 15. PHP Web Frameworks • Zend Framework • CodeIgniter • Symfony • CakePHP • Yii • Kohana • FuelPHP • CMS Frameworks (Drupal, Wordpress, Joomla) PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 16. Other PHP Frameworks • Lithium – for people who hate frameworks • Akelos – ported from ruby on rails • Seagull – a mature OOP framework • Lion – a dual MVC+MVP architecture PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 18. Choosing PHP as a platform • Easy to learn • Easy to install in different operating systems • The largest number developers • More than 75% of websites run on PHP • Open Source • Powerful • Tons of developer tools available • Huge resources available PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 19. Detailed Framework Guide A quick run through over top PHP frameworks PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 20. Zend Framework • Open source (New BSD License) • Object oriented • MVC architecture • PHP 5.2.4+ • Database Agnostic • http://www.zendframework.com/ PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 21. Zend Framework • Provides a console tool for Rapid Development • Generates models, controllers, layouts, & views • Poor documentation • No automated SQL generation • No automated CRUD functions • Default tutorials don’t provide basic authentication and security related examples PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 22. CodeIgniter • Not fully open source (CodeIgniter License) • Object oriented • MVC architecture • PHP 5.1.6+ • Database Agnostic – No native support for SQLite3 • http://codeigniter.com/ PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 23. CodeIgniter • No console tool • No automated generation tool • Very small footprint (2.2mb) • Video tutorials only • Tutorials and documentation (outdated) • Default tutorials don’t provide basic authentication and security related examples PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 24. Symfony • Open source (MIT License) • Object oriented • MVC architecture • PHP 5.2.4+ • Database Agnostic – Uses doctrine or propel for Object Relational Mapping (ORM) layer • http://symfony.com/ PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 25. Symfony • Powerful console tool (symfony) • Automagically generates all elements including sql queries (from YAML source) • Provides extremely detailed tutorials for all functionality • Tutorials work as documented • The basic tutorial includes admin functionality as well as authentication and security information • Plugins are easy to install using console tool PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 26. CakePHP • Open source (MIT License) • Object oriented • MVC architecture • PHP4 (4.3.2+) • Database Agnostic – Does not natively support SQLite3 • http://cakephp.org/ PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 27. CakePHP • Console tool (cake) • Cake bake generates code if a database is defined including models, views, and controllers for the tables in the database • Cake schema is used for database backup/restore functionality • Separate tutorials for a weblog and ACL controlled applications • Tutorials work as documented PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 28. Yii Framework • Open source (BSD License) • Object oriented • MVC architecture • PHP 5.3 • Database Agnostic • http://www.yiiframework.com/ PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 29. Yii Framework • Powerful console tool (yiic) • Does not generate SQL • Uses Gii (web based code generator) for CRUD operations • Default Yii apps as generated by yiic includes auth functionality and three basic pages • Tutorials are regularly updated. PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 30. Kohana • Open source (BSD License) • Originally based on CodeIgniter, but no more • Object oriented • H/MVC architecture • PHP 5.1.5 • Database Agnostic – Does not natively support SQLite3 • http://kohanaframework.org/ PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 31. Kohana • No console tool • No automated generation tool for any function • Small footprint (1.1mb) • Documentation is poor • Tutorials and documentation poor • Default tutorials don’t provide basic authentication and security related examples PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 32. Kohana • No console tool • No automated generation tool for any function • Small footprint (1.1mb) • Documentation is poor • Tutorials and documentation poor • Default tutorials don’t provide basic authentication and security related examples PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 33. FuelPHP • Open source (MIT License) • Based on ideas of multiple frameworks • Object oriented • H/MVC architecture • PHP 5.3+ • Database Agnostic • http://www.fuelphp.com PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 34. FuelPHP • Powerful command line automation “OIL” – Generate – Build MVC components, migrations, scaffolding – Refine – run migration and custom functions – Package – install and remove packages – Console – Test your code in real time with an interactive shell – Smallest footprint (865kb) • New framework • Tutorials and docs is sufficient but • Default tutorials don’t provide basic authentication and security related examples PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 35. How to you may choose • You will be developing so choose the one that suits your style and preferences • Availability of Libraries • Documentation and sample codes • Available tools IDE, Automation, Testing • Community activity • Ease of hiring people who know the platform PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 36. How I choose a Framework • Quality of code is very important • Coding standards for a one-mind team • Lightweight • Performance – Load what is needed – Short travel for each execution of code • Easy to create your own libraries • Responsive community • Flexibility to adapt to MY style PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 38. What’s next • Choose a framework • Develop great applications • Become a millionaire • Party all day • Share your knowledge • Grow!!! PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 39. Thanks Oops… There’s more PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 40. Full year of IT Events August 2011: Web Development Month September 2011: Mobile Application Month October 2011: Animation Month November 2011: Bloggers Month December 2011: SEO Month January 2012: Technopreneurship Month February 2012: I.T. Education Month March 2012: I.T. Career Month April 2012: Gaming Month May 2012: Graphic Design Month June 2012: Hacking and Network Security Month July 2012: Software Development Month PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 41. August I.T. Events by PGO University of Southeastern Philippines (USEP) Friday, August 12 · 9:00am - 11:30am http://www.facebook.com/event.php?eid=229646943743096 John Paul II College (JP2C) Saturday, August 13 · 9:00am - 4:00pm http://www.facebook.com/event.php?eid=220035684709122 University of Mindanao (UM) Wednesday, August 17 · 1:00pm - 5:00pm http://www.facebook.com/event.php?eid=245697658786703 University of Immaculate Conception (UIC) Saturday, August 20 · 1:00pm - 5:00pm http://www.facebook.com/event.php?eid=231713253532167 ACLC Monday, August 22 · 1:00pm - 4:00pm http://www.facebook.com/event.php?eid=231458190229578 PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 42. August I.T. Events by PGO Holy Cross (HCDC) Tuesday, August 23 · 3:00pm - 6:00pm http://www.facebook.com/event.php?eid=253809011309471 InterCity College of Science and Technology (ICST) Wednesday, August 24 · 9:00pm - 11:00pm http://www.facebook.com/event.php?eid=225237414194879 AMA Computer College Thursday, August 25 · 9:30am - 1:00pm http://www.facebook.com/event.php?eid=138109472943706 STI College Friday, August 26 · 1:00am - 4:00pm http://www.facebook.com/event.php?eid=124462760983852 PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 43. Competition On-the-spot Student Web Design Competition August 27, 2011 http://www.facebook.com/event.php?eid=241281559236739 Entries can be found at http://www.silicongulf.com/competitions/web_design PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 44. Our Loving Supporters • The SiliconGulf Initiative • Davao IT • Adobe User Group • PHP Philippines • Developers, Entrepreneurs, Artists of Davao • SEO-Philippines • The IT School with no name yet • Philippine Global Outsourcing PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 45. Thanks To all speakers, PHP framework developers, our team at Philippine Global Outsourcing, students of all participating schools To the Adobe Development Team for this wonderful piece of software. Learn from the best www.silicongulf.com PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 46. Contact 2nd Floor Door #8 Andreliz Bldg #238 Araullo Extension 8000 Davao City Philippines [email protected] www.philippineglobaloutsourcing.com +63 916 477 9322 (globe) +63 907 775 6544 (smart) +63 922 551 4009 (sun) +63 923 725 4512 (sun) +63 82 224 1040 (landline) PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 47. Copyright This reference material is exclusively distributed to the students of SiliconGulf Campus and should not be distributed, transmitted, or shared without the prior written consent of Christopher John Cubos http:// www.philippineglobaloutsourcing.com/chriscubos , SiliconGulf http://www.silicongulf.com/ or Philippines Outsourcing http://www.philippineglobaloutsourcing.com/ . This class material should be discussed by a trained instructor from SiliconGulf to maximize the learning and understanding of the topic. Others belong to their respective copyright holders. © Copyright 2011 SiliconGulf Campus and Christopher John Cubos. All Rights Reserved. PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 48. Disclaimer • Course technology and the author specifically disclaim any and all other warranties, either express or implied, including warranties of merchantability, suitability to a particular task or purpose, or freedom from errors. • Some states do not allow for exclusion of implied warranties or limitation of incidental or consequential damages, so these limitations might not apply to you. PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 49. SiliconGulf Campus SiliconGulf Campus is one of the pioneers of game based learning system in the Philippines. Our goal is to combined complex theories with fun and excitement of playing games. SiliconGulf Campus 2nd Floor Door #8 Andreliz Bldg. #238 Araullo Extension 8000 Davao City Philippines [email protected] www.silicongulf.com +63 916 477 9322 (globe) +63 907 775 6544 (smart) +63 922 551 4009 (sun) +63 923 725 4512 (sun) +63 82 224 1040 (landline) PHP H/MVC Frameworks Aug 2011 www.silicongulf.com
  • 50. Your First Animation Clicking your way through Adobe Edge