2. About the Author
●
My name is Oleg Krivtsov
●
I'm a C/C++ and PHP software developer
●
I received a PhD degree in Computer Science in 2010
●
I enjoy writing programming articles
●
Besides writing, I love skiing and watching Formula-1
3. Subject of the Book
●
●
The book is about programming web-sites with
Zend Framework 2
Zend Framework is a modern and popular PHP
web development framework:
●
professionally looking web-sites
●
scalable and secure web-sites
●
easy to test and maintain
●
utilizes the best practices and common design
patterns (Model-View-Controller, etc.)
4. Subject of the Book
●
Technologies:
●
●
HTML
●
CSS
●
●
Apache, PHP 5.3+, MySQL
JavaScript
Closely related libraries:
●
Twitter Bootstrap CSS Framework
●
jQuery
●
Doctrine ORM
5. Audience of the Book
●
●
●
This book is intended for beginner Zend
Framework 2 developers
Start with simple things
The first Zend Framework book that is easy to
read and understand for a newbie
7. About Leanpub
This book is available through Leanpub book
publishing service
●
●
●
Publish early, publish often
Obtain this book at a lower cost and give your
feedback to the author
Get the high-quality product
8. Get a Free Sample
●
Before buying the book, read a free sample
●
The sample contains the book chapters
●
Some parts of the chapter text are skipped
9. Structure of the Book
1.Introduction to Zend Framework 2
2.Zend Skeleton Application
3.Web Site Operation
4.Model-View-Controller
5.URL Routing
6.Page Appearance and Layout
7.Collecting User Input with Forms
8.Advanced Usage of Forms
10. Examples and Source Code
●
●
Book text is illustrated by code examples
Code is publicly available on GitHub
https://github.com/olegkrivtsov/using-zendframework-2-book
11. Chapters Overview
●
Chapter 1: Introduction to Zend Framework 2
●
What is a PHP framework?
●
ZF2 components
●
Differences between ZF1 and ZF2
●
ZF2 and competing frameworks
12. Chapters Overview
●
Chapter 2: Zend Skeleton Application
●
Configuring Apache/PHP/MySQL
●
How to create a new web site in ZF2
●
Downloading and installing the skeleton app
●
How to use Compozer
●
Apache Virtual Hosts
●
Creating NetBeans project
13. Chapters Overview
●
Chapter 3: Website Operation
●
What are PHP namespaces, interfaces and class
autoloading
●
The PSR-0 standard: what is it?
●
HTTP request and responce
●
Application life cycle and main events
●
Application configuration explained
●
Service manager
14. Chapters Overview
●
Chapter 4: Model-View-Controller
●
What are controllers, models and view templates?
●
Variable containers
●
Controller plugins and view helpers
●
Domain Driven Design (DDD) and available model
types
16. Chapters Overview
●
Chapter 6: Page Appearance and Layout
●
Twitter Bootstrap CSS Framework
●
Page layout in Zend Framework 2
●
Common view helpers
●
Writing own view helpers
●
Adding CSS and JavaScript to a web page
●
View models and page composition
17. Chapters Overview
●
Chapter 7: Collecting User Input with Forms
●
What is an HTML form?
●
Styling HTML Forms with Twitter Bootstrap
●
Forms and Model-View-Controller
●
Form Elements
●
Adding Form Validation Rules
●
Standard Form View Helpers
18. Purchase
●
●
●
Click the Buy Now button
Multiple payment options (PayPal, Visa,
MasterCard)
100% happiness guarantee
19. Get the Book with a Discount
Use the following Coupon:
DI$COUNT10
21. Learn ZF2 with the
"Using Zend Framework 2" book!
http://leanpub.com/using-zend-framework-2
Notes de l'éditeur
Hello Everybody!
My name is Oleg Krivtsov, and I'm excited to present you my new programming book named "Using Zend Framework 2".
The book is dedicated to easily creating modern web sites with PHP and Zend Framework 2.
This book is written in a way which makes it easy to learn Zend Framework 2 for beginner PHP developers.
The "Using Zend Framework 2" book is avialable in three convenient formats: PDF, electronic books and Kindle.
First let me briefly introduce myself. I have been professionally developing C/C++ and PHP software since tweny o'five. I received a PhD degree in Computer Science in twenty ten. I like contributing to open-source and writing programming articles for popular web resources. Besides writing, I love skiing and watching Formula-1.
So, the "Using Zend Framework 2" book is about programming web-sites with Zend Framework 2. Zend Framework is a modern PHP web development framework intended for building professionally looking, scalable and secure web-sites, which are easy to test and maintain. The framework utilizes the best practices and common design patterns, inspired by the evolution of web development industry. This includes Model-View-Controller pattern, allowing to organize the code in a consistent and standard way, making it easier to implement automatic code testing.
This book is not only about Zend Framework 2, but also about closely related libraries.
Although Zend Framework 2 has dedicated component for accessing the database, in this book we use third-party library called Doctrine ORM -- a de-facto standard object-oriented way to perform database management.
We also describe Doctrine-provided database migrations allowing to apply changes to the database in a standard way.
In the sample applications we will create in chapters of this book, Twitter Bootstrap CSS Framework is used, allowing to produce nice looking visual appearance and layout of HTML elements on the web pages.
This book is intended for beginner Zend Framework 2 developers, who doesn't know much about PHP autoloading, namespaces, interfaces, design patterns and the things like that.
I strive to give material starting with simple things that a beginner should understand. Advanced things go last in a chapter. This makes this book the first Zend Framework book that is easy to read and understand for a newbie.
The "Using Zend Framework 2" book is available through Leanpub service.
You can get the book by visiting the following page: http leanpub dot com slash using-zend-framework-2
On the page that appears, you can see the book cover, its title, a brief description and the table of contents.
At the bottom of the page, you can find the "Discuss the Book with the Author" button. Clicking this button opens the forum where you can read what others think about this book and provide your own feedback.
The idea behind Leanpub is to let book authors an abilitity to publish their books early and work on them in short iterations.
Thanks to Leanpub, you have a chance to obtain this book at a lower cost and give your feedback. This makes it possible for the author to immediately correct mistakes and enhance the places in text that you point to, thus creating a high-quality product. Your feedback is highly appreciated!
You will receive all newer versions of this book for free as they appear.
Before you buy the Using Zend Framework 2 book, it is recommended that you get a free sample and read it either online or download a PDF file. The free sample contains the book text, but some places of chapters are skipped.
With the free sample, you will have an idea of what the book is about and what is the author's explanation style.
This book is divided by chapters. A chapter is dedicated to a single topic.
For example, Chapter 1 “Introduction to Zend Framework 2” is intended to make you familiar with fundamental concepts and main components of the framework; Chapter 2 “Zend Skeleton Application” is dedicated to giving you instructions to install the skeleton application, which can be used for creation of your own web sites, and so on.
This ZF2 book's text is illustrated with code samples (published on GitHub).
To get the samples, please visit the following page:
github dot com slash olegkrivtsov slash using zend framework 2 book
Each sample is a complete web-site you can install and run yourself to see Zend Framework 2 in action. You can even use the samples as a base for your own web sites.
This makes this book even more suitable for beginner ZF2 developers. It may be difficult for a novice to write code without mistakes. If you are stuck or can not understand why your code does not work, you can download the complete working web application from GitHub code hosting and see it in action.
Let's provide some more detailed overview of book chapters content.
In Chapter 1 "Introduction to Zend Framework 2", you will learn what is a PHP framework and why you need it to develop your web site. You will talk about Zend Framework version 2 and discuss its main principles, design patterns and components.
For readers who have an experience in Zend Framework 1, in this section we’ll give some information on what has changed in Zend Framework 2.
We’ll also compare Zend Framework 2 with other PHP frameworks available on the market. They all have advantages and disadvantages, and here you will learn what they are.
In Chapter 2 "Zend Skeleton Application", we will show how you can create your own web site from scratch.
Here we will provide instructions on how to prepare your environment for developing ZF2-based applications. Configuring the development environment is the first thing you have to do
when beginning with creating a new web-site. This includes installing a web server, the PHP engine with required extensions and a database.
We will provide step-by-step instructions on how to download Zend Skeleton Application and install it with Composer dependency manager. We will show how to configure Apache Virtual Host.
In this book, we use NetBeans IDE which is a convenient development environment. We will show how to create NetBeans project and how to work with NetBeans.
In Chapter 3 "Website Operation", you will learn some theory about how a web site works. This information is incredibly useful for beginner developers.
This chapter covers the concepts like PHP namespaces, autoloading and PSR-0 standard, site entry point, module loading and module entry points.
It discusses the application life cycle and Zend Framework 2 events.
Developers who are interested how application configuration is loaded and what is the service manager, can find a detailed explanation of these topics here.
Chapter 4 is called "Model-View-Controller".
As chapter's name assumes, here you will learn about what are models, views and controllers and how they cooperate to produce an HTML page seen in a web brower.
This chapter explains what is Domain Driven Designa and model types you may have in your application: entities, value objects, services, factories and repositories.
Beginners usually misunderstand the roles of controllers and models, making controllers "fat" and models "slim". Here you will find the instructions on how to do that correctly.
Chapter 5, "URL Routing" describes the way ZF2-based application maps page URLs to
controllers and their actions.
We start with the description of common URL structure: what is URL schema, what segments and parts present in a typical URL.
Then we proceed with a in-depth description of simple route types, like Literal, Segment and Regex, and compound route type like TreeRouteStack.
The chapter ends with a real-life example showing you how to write your own route type if you really need such.
Chapter 6, "Page Appearance and Layout" covers the Twitter Bootstrap CSS framework and provides instructions on using this library with your ZF2 web application.
Here you will learn what is a layout template and how to switch layouts in different parts of your site.
Learn what common view helpers are, and how to compose a web page with their help. We provide an example showing how to write your own view helpers.
In Chapter 7, which is called "Collecting User Input with Forms", you will learn about HTML forms and their usage in context of Zend Framework 2.
Here we describe how to apply Twitter Bootstrap styles to your form, what is a form model and how to render a form with special view helpers.
How to add form validation rules to make your forms secure.
Now, after this chapters overview, I hope that you have some general understanding of the Using Zend Framework 2 book is about and ready to make a decision whether to buy the book or not.
Before buying the book, it is recommended that you read a free sample available on the book site.
Once you have reviewed the free book sample, you can purchase a full copy of the book. The book is available in three commonly used formats: PDF (for PCs), EPUB (for electronic books) and MOBI (for Kindle).
There are several payment options available. You can pay for the book either through your PayPal account or with a credit card, like Visa or MasterCard.
Leanpub provides a 100 percent happiness guarantee. If you are not satisfied with a book you purchased on Leanpub, you can get a refund with two clicks.
Thank you for watching this video. If you think that the "Using Zend Framework 2" book will be useful for you, than specially for you, I provide a discount to my book. To obtain the book with a discount, use the BLOG10 coupon code.
If you have some questions, suggestions or critical remarks, please feel free to contact me trough my E-mail address: [email_address]
I will be more than happy to answer you.
Or, you can contact me through my Google+ account: https://plus.google.com/111761320345042135586
You can follow my personal blog which I update on a regular basis, approximately once a week:
http://olegkrivtcov.wordpress.com/
Your feedback is highly appreciated.
Thank you for watching this video about the "Using Zend Framework 2" book, which is the first book about Zend Framework which is easy to read for beginners.