SlideShare a Scribd company logo
Getting Up & Running with
Agenda

• Overview
• MVC
• Components
• Environment setup
• Your first Zend Framework project
• Resources
• QA
What is framework ?


• Toolbox
• Blueprint
• Skeleton
Why Zend Framework

•Maintain by PHP Company
•Open Source
•Flexible Architecture
• ZF Certification
•Partner with
Zend Framework – Architecture

• MVC design pattern
• Front Controller pattern
• Component Based
• Loosely couple
Zend Components


                    Zend_Validate

                    Zend_Auth
Zend_Acl
  ZEND_FORM     Zend_Session
Zend web services – Components




                                 ZEND_GDATA
                                 ZEND_FEED
Environment Setup



• Requirements
   1.   PHP 5.x
   2.   Web server with mod_rewrite enabled
Environment Setup (Continued…)

• Zend tool setup (Ubuntu way)

       sudo apt-get install zend-framework


       ; include_path=${include_path} “:/path/to/libzend-
       framework-php”
       // uncomment in /etc/php5/conf.d/zend-
       framework.ini
Environment Setup (Continued…)

• Zend tool setup (Windows way)
Environment Setup (Continued…)
Environment Setup (Continued…)
Environment Setup (Continued…)
Environment Setup (Continued…)
Environment Setup (Continued…)


• Zend tool setup verification



   zf show version
           Zend Framework Version: 1.11.10
Your first Zend Framework project




zf create project {project-name}
Your first Zend Framework project
Project structure
Create Virtual host


<VirtualHost *:80>
       ServerName local.sitename.com
       DocumentRoot /var/www/zf-project/public
       <Directory "/var/www/zf-project/public">
              AllowOverride All
       </Directory>
</VirtualHost>
Tada!
Connecting to database



resources.db.adapter = "Pdo_Mysql”
resources.db.params.host = ”HostName"
resources.db.params.username = ”UserName"
resources.db.params.password = ”Password"
resources.db.params.dbname = ”DbName"
Let’s have a CRUD operation




Create
Retrieve
Update
Delete
Controller




zf create controller {name}
Controller

<?php
class AlbumController extends Zend_Controller_Action{
    public function init(){
        /* Initialize action controller here */
    }
    public function indexAction(){
           /* Your code goes here */
    }
}
Model




zf create model {model-name}
Model

<?php
class Application_Model_Albums extends Zend_Db_Table_Abstract
{
   protected $_name = 'albums';

    public function fName() {
          /* Your code goes here */
    }
}
Crud operation

           public function addAlbum($data) {
                     $this->insert($data);
           }

           public function updateAlbum($data, $where) {
                     $this->update($data, $where);
           }

           public function deleteAlbum($where) {
                     $this->delete($where);
           }
Zend Frameworks Gems 


• Web services
   1.   Google
   2.   Amazon
   3.   Flickr
   4.   Yahoo
   5.   More….
Zend web service (flickr)
Zend web service (flickr)




public function flickrAction(){
     $flickr = new Zend_Service_Flickr(’YourAPIKey');
     $this->view->results = $flickr->tagSearch('worldcup’);
}
Zend web service (flickr)


<ul>
  <?php foreach ($this->results as $result){
        $photo = $result->Square; ?>
        <li><a href="<?php echo $photo->ClickUri ?>">
                  <img src="<?php echo $photo->uri ?>" alt="image"/>
             </a>
        </li>
  <?php } ?>
</ul>
Resources




•   http://akrabat.com/zend-framework-tutorial/
•   http://net.tutsplus.com/tutorials/php/zend-framework-from-scratch/
•   http://goo.gl/fQLL6
Who we are


Saidur Rahman Bijon   Shoriful Islam Ronju
     @somewherein                  @leevio
Questions & Answers




   Any Question?

More Related Content

PDF
Assetic (Symfony Live Paris)
PDF
Head First Zend Framework - Part 1 Project & Application
PDF
ZendFramework2 & Symfony2
KEY
Deploying
PPTX
Node.js Express
PDF
Introducing Assetic: Asset Management for PHP 5.3
PDF
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API
Assetic (Symfony Live Paris)
Head First Zend Framework - Part 1 Project & Application
ZendFramework2 & Symfony2
Deploying
Node.js Express
Introducing Assetic: Asset Management for PHP 5.3
Connecting Content Silos: One CMS, Many Sites With The WordPress REST API

What's hot (19)

PDF
Using the new WordPress REST API
PDF
Mojolicious. Веб в коробке!
PDF
深入淺出 MVC
KEY
Mojolicious - A new hope
PDF
Assetic (Zendcon)
PPTX
Building Web Apps with Express
PPTX
Reusable bootstrap resources zend con 2010
PDF
I use drupal / 我是 OO 師,我用 Drupal
KEY
CodeIgniter 3.0
PDF
Mojolicious: what works and what doesn't
PDF
Mojolicious
PDF
Mojolicious, real-time web framework
PPT
Dance for the puppet master: G6 Tech Talk
PPTX
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
PDF
Assetic (OSCON)
PPT
Presentation
PDF
Caldera Learn - LoopConf WP API + Angular FTW Workshop
ODP
Mojolicious on Steroids
PPT
Using the new WordPress REST API
Mojolicious. Веб в коробке!
深入淺出 MVC
Mojolicious - A new hope
Assetic (Zendcon)
Building Web Apps with Express
Reusable bootstrap resources zend con 2010
I use drupal / 我是 OO 師,我用 Drupal
CodeIgniter 3.0
Mojolicious: what works and what doesn't
Mojolicious
Mojolicious, real-time web framework
Dance for the puppet master: G6 Tech Talk
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Assetic (OSCON)
Presentation
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Mojolicious on Steroids
Ad

Similar to Getting up & running with zend framework (20)

PDF
Introduction to Zend framework
ODP
Zend Framework 1.9 Setup & Using Zend_Tool
PPTX
Z-Ray: A customizable development tool belt (Zendcon 2016)
PDF
関西PHP勉強会 php5.4つまみぐい
PDF
What's New In Laravel 5
PDF
The Solar Framework for PHP 5 (2010 Confoo)
PDF
symfony on action - WebTech 207
ODP
Building Web Services with Zend Framework (PHP Benelux meeting 20100713 Vliss...
PDF
Zend Framework 2 - Basic Components
PDF
Decoupled Libraries for PHP
PPTX
Zend framework
KEY
KEY
Zend Framework Study@Tokyo #2
PDF
Playing with php_on_azure
PDF
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
PDF
Foundations of Zend Framework
PPTX
Zf2 phpquebec
PDF
Zend Framework Foundations
Introduction to Zend framework
Zend Framework 1.9 Setup & Using Zend_Tool
Z-Ray: A customizable development tool belt (Zendcon 2016)
関西PHP勉強会 php5.4つまみぐい
What's New In Laravel 5
The Solar Framework for PHP 5 (2010 Confoo)
symfony on action - WebTech 207
Building Web Services with Zend Framework (PHP Benelux meeting 20100713 Vliss...
Zend Framework 2 - Basic Components
Decoupled Libraries for PHP
Zend framework
Zend Framework Study@Tokyo #2
Playing with php_on_azure
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
Foundations of Zend Framework
Zf2 phpquebec
Zend Framework Foundations
Ad

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
KodekX | Application Modernization Development
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
MIND Revenue Release Quarter 2 2025 Press Release
Big Data Technologies - Introduction.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
“AI and Expert System Decision Support & Business Intelligence Systems”
The AUB Centre for AI in Media Proposal.docx
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Chapter 3 Spatial Domain Image Processing.pdf
Understanding_Digital_Forensics_Presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Diabetes mellitus diagnosis method based random forest with bat algorithm
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25 Week I
sap open course for s4hana steps from ECC to s4
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
MIND Revenue Release Quarter 2 2025 Press Release

Getting up & running with zend framework

Editor's Notes

  • #10: Zend tool setup for linuxand windows
  • #11: Zend tool setup for linuxand windows
  • #12: Zend tool setup for linuxand windows
  • #13: Zend tool setup for linuxand windows
  • #14: Zend tool setup for linuxand windows
  • #15: Zend tool setup for linuxand windows
  • #16: Zend tool setup for linuxand windows