• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Introduction to PHP H/MVC Frameworks by www.silicongulf.com
 

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

on

  • 2,919 views

Model-View-Controller (MVC) is a software architecture, currently considered an architectural pattern used in software engineering. Separation of concerns is one of the major reasons why MVC ...

Model-View-Controller (MVC) is a software architecture, currently considered an architectural pattern used in software engineering. Separation of concerns is one of the major reasons why MVC Frameworks were created. Learn more about it in our presentation. This presentation was done in more than 8 Universities, Colleges, and other training institutions in the Philippines by Christopher John Cubos. Comparison of PHP MVC Frameworks like Zend Framework, Symfony, CodeIgniter, Kohana, Yii Framework, and the latest PHP Framework - FuelPHP.

Statistics

Views

Total Views
2,919
Views on SlideShare
2,913
Embed Views
6

Actions

Likes
3
Downloads
103
Comments
4

2 Embeds 6

http://www.sfexception.com 4
http://localhost 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

14 of 4 previous next Post a comment

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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

    • 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
    • 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 presentPHP H/MVC Frameworks Aug 2011www.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 2011www.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 designPHP H/MVC Frameworks Aug 2011www.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 2011www.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. eventsPHP H/MVC Frameworks Aug 2011www.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.orgPHP H/MVC Frameworks Aug 2011www.silicongulf.com
    • How does MVC work? Controller View ModelPHP H/MVC Frameworks Aug 2011www.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 2011www.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 logicPHP H/MVC Frameworks Aug 2011www.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 interfacePHP H/MVC Frameworks Aug 2011www.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 2011www.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 developmentPHP H/MVC Frameworks Aug 2011www.silicongulf.com
    • PHP Web Frameworks • Zend Framework • CodeIgniter • Symfony • CakePHP • Yii • Kohana • FuelPHP • CMS Frameworks (Drupal, Wordpress, Joomla)PHP H/MVC Frameworks Aug 2011www.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 architecturePHP H/MVC Frameworks Aug 2011www.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 availablePHP H/MVC Frameworks Aug 2011www.silicongulf.com
    • Detailed Framework Guide A quick run through over top PHP frameworksPHP H/MVC Frameworks Aug 2011www.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 2011www.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 examplesPHP H/MVC Frameworks Aug 2011www.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 2011www.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 examplesPHP H/MVC Frameworks Aug 2011www.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 2011www.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 toolPHP H/MVC Frameworks Aug 2011www.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 2011www.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 documentedPHP H/MVC Frameworks Aug 2011www.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 2011www.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 2011www.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 2011www.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 examplesPHP H/MVC Frameworks Aug 2011www.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 examplesPHP H/MVC Frameworks Aug 2011www.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.comPHP H/MVC Frameworks Aug 2011www.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 examplesPHP H/MVC Frameworks Aug 2011www.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 platformPHP H/MVC Frameworks Aug 2011www.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 stylePHP H/MVC Frameworks Aug 2011www.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 2011www.silicongulf.com
    • Thanks Oops… There’s morePHP H/MVC Frameworks Aug 2011www.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 MonthPHP H/MVC Frameworks Aug 2011www.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=231458190229578PHP H/MVC Frameworks Aug 2011www.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=124462760983852PHP H/MVC Frameworks Aug 2011www.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_designPHP H/MVC Frameworks Aug 2011www.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 OutsourcingPHP H/MVC Frameworks Aug 2011www.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.comPHP H/MVC Frameworks Aug 2011www.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 2011www.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 2011www.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 2011www.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 2011www.silicongulf.com
    • Your First AnimationClicking your way through Adobe Edge