You are previewing Zend Framework 2.0 by Example Beginner's Guide.
O'Reilly logo
Zend Framework 2.0 by Example Beginner's Guide

Book Description

PHP Developers will find this book quickly takes their web application building skills to new levels. It’s a chance to learn Zend Framework 2.0 through real world examples and an involving hands-on approach.

  • Master application development with Zend Framework 2.0

  • Learn about Zend Framework components and use them for functions such as searching, image processing, and payment gateway integrations

  • Integrate third-party services for media sharing and payment processing

  • In Detail

    ZF2 is the latest update to the well-known Zend Framework. This version has considerably eased the process of building complex web applications with minimal development effort using plug and play components. ZF2 also provides a highly robust and scalable framework for developing web applications.

    "Zend Framework 2.0 by Example: Beginner’s Guide" will guide you through the process of developing powerful web applications using ZF2. It covers all aspects of Zend Framework application development right from installation and configuration; the tasks are designed in a way that readers can easily understand and use them to build their own applications with ease.

    "Zend Framework 2.0 by Example: Beginner’s Guide" begins with the basic installation and configuration of the Zend Framework. As you progress through the exercises, you will become thoroughly acquainted with ZF2. With this book, you will learn about the basic concepts of building solid MVC web applications using Zend Framework 2.0. The detailed step-by-step instructions will enable you to build functionality such as a group chat, a file & media sharing service, search, and a simple store to name a few. You will also use a wide range of external modules to implement features that are not natively available. By the end of the book, you will be well versed in building complex, functionality-rich web applications using Zend Framework 2.0.

    "Zend Framework 2.0 by Example: Beginner’s Guide" provides everything that you need for building functionality-rich web applications with simple real world examples and tasks.

    Table of Contents

    1. Zend Framework 2.0 by Example Beginner's Guide
      1. Table of Contents
      2. Zend Framework 2.0 by Example Beginner's Guide
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Time for action – heading
          1. What just happened?
          2. Pop quiz – heading
          3. Have a go hero – heading
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started with Zend Framework 2.0
        1. Zend Framework 2.0
        2. Introduction to Zend Server Community Edition (CE)
          1. Zend Server CE – system requirements
        3. Time for action – installing Zend Server CE
          1. What just happened?
          2. Have a go hero
          3. Configuring Zend Server CE
            1. Zend Server CE – Administration Interface
        4. Time for action – configuring Zend Server CE
          1. What just happened?
        5. MySQL
        6. Time for action – installing MySQL
          1. What just happened?
          2. Have a go hero
            1. phpMyAdmin
        7. Time for action – creating a database
          1. What just happened?
          2. Have a go hero
          3. Pop quiz – Zend Framework 2.0
        8. Summary
      9. 2. Building Your First Zend Framework Application
        1. Prerequisites
        2. ZendSkeletonApplication
        3. Time for action – creating a Zend Framework project
          1. What just happened?
        4. Zend Framework 2.0 – modules
          1. Zend Framework 2.0 – project folder structure
        5. Time for action – creating a module
          1. What just happened?
        6. MVC layer
        7. Zend Framework module – folder structure
        8. Time for action – creating controllers and views
          1. What just happened?
        9. Zend Framework module – configuration
        10. Time for action – modifying module configuration
          1. What just happened?
          2. Have a go hero
          3. Pop quiz – Zend Framework 2.0
        11. Summary
      10. 3. Creating a Communication Application
        1. Zend\Form
        2. Time for action – creating a registration form
          1. What just happened?
          2. Have a go hero
        3. Form validation
          1. Zend\InputFilter
        4. Time for action – adding validation to the registration form
          1. What just happened?
          2. Have a go hero
        5. Models and database access
          1. TableGateway
        6. Time for action – creating models and saving the form
          1. What just happened?
          2. Zend\Authentication
        7. Time for action – user authentication
          1. What just happened?
          2. Pop quiz – Zend Framework 2.0
        8. Summary
      11. 4. Data Management and Document Sharing
        1. Zend Framework 2 ServiceManager
        2. Time for action – migrating existing code to ServiceManager
          1. What just happened?
          2. Have a go hero
        3. Database operations
          1. More on TableGateway
        4. Time for action – implementing an admin UI to manage users
          1. What just happened?
          2. Have a go hero
        5. Document management
        6. Time for action – creating a file upload form
          1. What just happened?
          2. Have a go hero
        7. Managing file sharing
        8. Time for action – implementing a file sharing system
          1. What just happened?
          2. Pop quiz – data management and document sharing
        9. Summary
      12. 5. Chat and E-mail
        1. Layouts and views
          1. View helpers
            1. The URL helper
            2. The BasePath helper
            3. The JSON helper
          2. Concrete placeholder implementations
            1. The HeadLink helper
            2. The HeadMeta helper
            3. The HeadScript helper
            4. The HeadStyle helper
            5. The HeadTitle helper
        2. Time for action – using jQuery UI in a simple page
          1. What just happened?
          2. Have a go hero
        3. Building a simple group chat
        4. Time for action – creating a simple group chat application
          1. What just happened?
          2. Have a go hero
        5. Sending mails
          1. Zend\Mail\Transport
          2. Zend\Mail\Message
          3. Zend\Mime\Message and Zend\Mime\Part
        6. Time for action – creating a simple e-mail form
          1. What just happened?
          2. Have a go hero
        7. Zend\EventManager
        8. Time for action – setting module layout using ZF events
          1. What just happened?
          2. Pop quiz – chat and e-mail
        9. Summary
      13. 6. Media Sharing
        1. External modules
        2. Resizing images
        3. Time for action – resizing images using modules
          1. What just happened?
          2. Have a go hero
        4. The Photo gallery application
        5. Time for action – implementing a simple photo gallery
          1. What just happened?
          2. Have a go hero
        6. Google Data APIs
          1. The Google Photos API
        7. Time for action – fetching photos from Google Photos
          1. What just happened?
          2. Have a go hero
        8. YouTube Data API
        9. Time for action – listing YouTube videos for a keyword
          1. What just happened?
          2. Pop quiz – media sharing
        10. Summary
      14. 7. Search Using Lucene
        1. Introduction to Lucene
        2. Time for action – installing ZendSearch\Lucene
          1. What just happened?
        3. Indexing
        4. Time for action – generating a Lucene index
          1. What just happened?
        5. Searching
        6. Time for action – displaying search results
          1. What just happened?
        7. Indexing Microsoft Office documents
        8. Time for action – indexing document files
          1. What just happened?
          2. Have a go hero
          3. Pop quiz – search
        9. Summary
      15. 8. Creating a Simple Store
        1. Shopping cart
        2. Time for action – creating a store front
          1. What just happened?
        3. The store administration
        4. Time for action – creating the Store Admin interface
          1. What just happened?
          2. Have a go hero
        5. Payments with PayPal
          1. PayPal and Zend Framework 2.0
        6. Time for action – setting up PayPal
          1. What just happened?
        7. PayPal Express Checkout
        8. Time for action – accepting payments using PayPal
          1. What just happened?
          2. Have a go hero
          3. Pop quiz – creating a simple store
        9. Summary
      16. 9. HTML5 Support
        1. HTML5 input elements
        2. Time for action – HTML5 input elements
          1. What just happened?
        3. HTML5 view helpers
        4. Time for action – HTML5 view helpers
          1. What just happened?
          2. Have a go hero
        5. HTML5 attributes
          1. Multiple file uploads
        6. Time for action – HTML5 multiple file uploads
          1. What just happened?
          2. Pop quiz – HTML5 support
        7. Summary
      17. 10. Building Mobile Applications
        1. Cloud-connected mobile applications
          1. Zend Studio 10
          2. phpCloud
        2. Time for action – configuring your phpCloud account
          1. What just happened?
          2. PhoneGap and Zend Studio
        3. Time for action – building your first cloud-connected mobile application
          1. What just happened?
        4. Native applications versus mobile web applications
        5. Time for action – testing as a native application
          1. What just happened?
          2. Have a go hero
        6. Zend Server Gateway
        7. Time for action – creating a mobile search interface
          1. What just happened?
          2. Pop quiz – building mobile applications
        8. Summary
      18. A. Pop Quiz Answers
        1. Chapter 1, Getting Started with Zend Framework 2.0
          1. Pop quiz – Zend Framework 2.0
        2. Chapter 2, Building Your First Zend Framework Application
          1. Pop quiz – Zend Framework 2.0
        3. Chapter 3, Creating a Communication Application
          1. Pop quiz – Zend Framework 2.0
        4. Chapter 4, Data Management and Document Sharing
          1. Pop quiz – data management and document sharing
        5. Chapter 5, Chat and E-mail
          1. Pop quiz – chat and e-mail
        6. Chapter 6, Media Sharing
          1. Pop quiz – media sharing
        7. Chapter 7, Search Using Lucene
          1. Pop quiz – search
        8. Chapter 8, Creating a Simple Store
          1. Pop quiz – creating a simple store
        9. Chapter 9, HTML5 Support
          1. Pop quiz – HTML5 Support
        10. Chapter 10, Building Mobile Applications
          1. Pop quiz – building mobile applications
      19. Index