Web Development with Zend Framework 2
Web Development with Zend Framework 2
Concepts, Techniques and Practical Solutions
About the Book
"Web Development with Zend Framework 2" is the first and only book about the brand new Zend Framework 2 - it's written for beginners as well as advanced users and it covers the fundamental concepts and brings tons of practical solutions for your daily business. "Web Development with Zend Framework 2" is the translation of the bestselling German book "Webentwicklung mit Zend Framework 2" with hundreds of downloads on Leanpub and Amazon.
Listen to what others say about the book:
"[..] a very good Zend Framework 2 book for beginners and advanced users [..] paves the way to Zend Framework 2. A Must-Have." (woy.ch)
"I just bought it and don't regret a single penny [..]. Yes, it's absolutely worth the money." (zfforum.de)
"Written in a very readable informal way, which makes makes reading fun. Personally, I favor this style of writing over the usual formal way of other development books." (blog.dirk-helbert.de)
Please note: Translation is work-in-progress and not all chapters of the original book are available in English yet. BUY NOW, START READING AND YOU WILL GET ALL UPDATES AND ADDITIONAL CHAPTERS FOR FREE and pushed automatically to your inbox once available.
- 1 Important notice for Amazon customers
- 2.1 Who is this book for?
- 2.2 Structure of this book
- 2.3 Repetitions
- 2.4 Code Downloads
- 2.5 How you can best work with this book
- 2.6 Found a bug?
- 2.7 Conventions used in this book
3 Zend Framework 2 - An overview
- 3.1 How Zend Framework 2 is being developed
- 3.2 Module system
- 3.3 Event system
- 3.4 MVC implementation
- 3.5 Additional components
- 3.6 Design Patterns: Interface, Factory, Manager, etc.
4 Hello, Zend Framework 2!
- 4.1 Installation
- 4.2 ZendSkeletonApplication
- 4.3 Composer
- 4.4 A first sign of life
- 4.5 Directory structure of a Zend Framework 2 application
- 4.6 The index.php file
5 A first custom module
- 5.1 Preparing the “Hello World” module
- 5.2 Autoloading
6 One time Request and back again
- 6.1 ServiceManager
- 6.2 Writing your own service
- 6.3 ModuleManager
- 6.4 Application
- 6.5 ViewManager
- 6.6 Summary
- 7.1 Registering a listener
- 7.2 Registering several listeners at the same time
- 7.3 Removing a registered listener
- 7.4 Trigger an event
- 7.5 SharedEventManager
- 7.6 Using events in one’s own classes
- 8.1 The “Application” module
- 8.2 Module-dependent behaviour
- 8.3 Installing a third-party module
- 8.4 Configuring a third-party module
- 9.1 Concept & mode of operation
- 9.2 Controller plugins
- 9.3 Writing your own controller plugin
- 10.1 Concept & mode of operation
- 10.2 Layouts
- 10.3 Writing your own View Helper
- 11.1 Entities, repositories & value objects
- 11.2 Business Services & Factories
- 11.3 Business events
- 12.1 Introduction
- 12.2 Definition of Routes
- 12.3 Matching test
- 12.4 Generation of a URL
- 12.5 Default Routing
- 12.6 Creative routing: A/B tests
13 Dependency injection
- 13.1 Introduction
- 13.2 Zend\Di for object graphs
- 13.3 Zend\Di for configuration management
14 Persistence with Zend\Db
- 14.1 Connecting to databases
- 14.2 Generating and executing SQL-Statements
- 14.3 Working with tables and entries
- 14.4 Organisation of database queries
- 14.5 Zend\DB alternative: Doctrine 2 ORM
- 15.1 Standard validators
- 15.2 Writing your own validator
- 16.1 Preparing a form
- 16.2 Displaying a form
- 16.3 Editing form entries
- 16.4 Validating form entries
- 16.5 Standard form elements
- 16.6 Fieldsets
- 16.7 Linking entities with Forms
17 Logging & Debugging
- 17.1 Introduction
- 17.2 FirePHP for Firefox
- 17.3 ChromePHP for Chrome
- 17.4 Zend\Log
- 17.5 Zend\Log with FirePHP
- 17.6 Zend\Log with ChromePHP
- 17.7 Using Zend\Log independent of the situation
- 17.8 Additional Zend\Log options
18 Unit Testing
- 18.1 Introduction
- 18.2 Testing a service
- 18.3 Testing a controller
19 User management
- 19.1 Introduction
- 19.2 User authentication
- 19.3 User sessions
- 19.4 Resources & roles
- 19.5 Zfc user
20 ZF2 on the command line
- 20.1 Introduction
- 20.2 Invocation via the Console
- 20.3 Console routes and request processing
- 21.1 Numerical, monetary and date formats
- 21.2 Text translations
- 21.3 Determining and configuring the locale
22 AJAX & Web services
- 22.1 AJAX with JSON
- 22.2 AJAX with HTML
- 22.3 RESTful web services
- 23 Sending emails
24 Sending an email
- 24.1 Sending a HTML email
- 24.2 Using templates for HTML emails
- 24.3 Sending emails with attachments
25 Navigations & Breadcrumbs
- 25.1 Generating navigations
- 25.2 Generating an application navigation
- 25.3 Generating breadcrumbs
26 Speeding up applications by caching
- 26.1 Introduction
- 26.2 Opcode cache
- 26.3 Zend\Cache
- 26.4 Identifying performance bottlenecks
27 Developers’ Dairy
- 27.1 Introduction
- 27.2 Envisioning
- 27.3 Sprint 1 - Code Repository, Development Environment and the initial Codebase
- 27.4 Sprint 2 - A custom module with add product functionality
- 27.5 Sprint 3 - Add a deal, show available deals
- 27.6 Sprint 4 - Order form
- 27.7 Sprint 5 - Make ZfDeals available as a ZF2 module
- 27.8 What’s next?
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Production HaskellMatt Parsons
Are you excited about Haskell, but don't know where to begin? Are you thrilled by the technical advantages, but worried about the unknown pitfalls? This book has you covered.
Algebra-Driven DesignSandy Maguire
A how-to field guide on building leak-free abstractions and algebraically designing real-world applications.
Machine Learning EngineeringAndriy Burkov
"If you intend to use machine learning to solve business problems at scale, I'm delighted you got your hands on this book."
—Cassie Kozyrkov, Chief Decision Scientist at Google
"Foundational work about the reality of building machine learning models in production."
—Karolis Urbonas, Head of Machine Learning and Science at Amazon
The Hundred-Page Machine Learning BookAndriy Burkov
Everything you really need to know in Machine Learning in a hundred pages.
Ansible for DevOpsJeff Geerling
Ansible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
OpenIntro StatisticsDavid Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntro
A complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Cloud StrategyGregor Hohpe
While most enterprises are moving to the cloud these days, many initiatives are driven by wishes or promises rather than a sound strategy. Harvested from half a decade of cloud migrations, this book shares frameworks, strategies, and anecdotes for a structured and decision-centric path to cloud success.
Sockets and PipesType Classes
Sockets and Pipes is not an introduction to Haskell; it is an introduction to writing software in Haskell. Using a handful of everyday Haskell libraries, this book walks through reading the HTTP specification and implementing it to create a web server.
C++ Best PracticesJason Turner
Level up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Practical FP in Scala: A hands-on approachGabriel Volpe
A practical book aimed for those familiar with functional programming in Scala who are yet not confident about architecting an application from scratch.
Together, we will develop a purely functional application using the best libraries in the Cats ecosystem, while learning about design patterns and best practices.
The Node.js Bundle
3 BooksThis bundle combines three bestselling Leanpub Node.js books into a package that gives you everything you need to get started with developing Node.js applications at an unbeatable price.
The Tester's Library
8 BooksThe Tester's Library consists of eight five-star books that every software tester should read and re-read. As bound books, this collection would cost over $200. Even as e-books, their price would exceed $80, but in this bundle, their cost is only $49.99. Here are the books, and why they should be in your library: Perfect Software and Other...
11 BooksIn this bundle, you will find 10 different agile books. They are about different aspects of being agile. - finding a job - doing coding dojo's - Retrospectives - Personal kanban - a non-typical coaching book and even a book that gives you an insight in the lives of some agile people.
WTFlop 6M + HU - Beta Bundle
Fifty Quick Ideas
3 BooksGet all three books for the price of two! Fifty Quick Ideas books are full of practical, real-world techniques that you can use to improve teamwork, build better products and build them in a better way.
Growing Agile: Coach's Guide Series
4 BooksThis bundle provides a collection of training and workshop plans for a variety of agile topics. The series is aimed at agile coaches, trainers and ScrumMasters who often find themselves needing to help teams understand agile concepts. Each book in the series provides the plans, slides, handouts and activity instructions to run a number of...
Marionette.js A to Z
Complete Scala Bundle
3 BooksScala is a general-purpose programming language and it's getting extremely popular these days. Some say that learning Scala could be a challenging task. My experience, however, suggests that this is actually a myth that has very little to do with reality. With the right approach, learning Scala can be easy, fun and rewarding.The first book from...
Build A Better Backbone App
3 BooksThe best way to learn new development skills is through experience, but that takes time you don't have.Get the best of both worlds with this bundle: you'll learn how to produce modern web applications by learning from experienced developers like Derick Bailey and David Sulc. BackboneJS is one of the favorite tools on the web today, but it...