Book Image

Web Application Development with Yii and PHP

By : Jeffrey Winesett
Book Image

Web Application Development with Yii and PHP

By: Jeffrey Winesett

Overview of this book

<p>This book is a step by step tutorial in developing a real-world application using the incremental and iterative approach to software development. You learn about agile software development by leaning on the agile nature of the Yii application development framework. You touch on each aspect of the software development lifecycle by building a project task management application from concept through production deployment.<br /><br />After a brief, general introduction to the Yii framework and outlining the software development approach taken throughout the book, the chapters break down in the same way as software development iterations do in real-world projects. After the 1st iteration, you will have a working and tested application with a valid, tested connection to a database.<br /><br />In the 2nd and 3rd iterations, we flesh out our main database entities and domain object model and become familiar with Yii's object-relational-mapping (ORM) layer, Active Record. We also learn how to lean on Yii's auto-generation tools to automatically build our create/read/update/delete (CRUD) functionality against our newly created model. These iterations also focus on how Yii's form validation and submission model works. By the end of the third iteration you will have a working application that allows you to mange projects and issues (tasks) within those projects.<br /><br />The 4th and 5th iterations are dedicated to user management. We learn about the built-in authentication model within Yii to assist in application login and logout functionality. We then dive into the authorization model, first taking advantage of a Yii's simple access control model, then implementing the more sophisticated role-based access control (RBAC) framework that Yii provides.<br /><br />By the end of the 5th iteration, all of the basics of a task management application are in place. The next several iterations are focused on the nice-to-haves. We add user comment functionality, introducing a reusable content portlet architecture approach in the process. We add in an RSS Web feed and demonstrate how easy it is to integrate other third-party tools within a Yii application. We take advantage of Yii's theming structure to help streamline and design the application, and then introduce Yii's internationalization (I18N) features so the application can be adapted to various languages and regions without engineering changes.<br /><br />Finally, we turn our focus to production deployment. We introduce ways to optimize performance and security to prepare the application for a real-world production environment.</p>
Table of Contents (19 chapters)
Web Application Development with Yii and PHP
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

About the Reviewers

Wojciech Bancer has a Master's Degree in Computer Science. He has over ten years of experience in web application development. In 2007, after passing the Zend exam, he gained a Zend Certified Engineer for PHP5 certificate. Wojciech started his career developing web applications in PHP4 and PHP5 as a freelancer. Later, he started working for a digital media agency in London, where he was introduced to various PHP frameworks and agile processes. Currently, he is a technical consultant for ORM London working on a range of web, mobile, and touch projects.

Carsten Brandt has been a freelance PHP developer for many years. He founded his own ISP company providing web development and hosting services in 2007. Together with his wife and little son, he is currently living in Berlin, Germany and studying Computer Science at Technische Universität Berlin.

He first started with Yii in 2010 and has contributed heavily to the yiiext extension repository http://yiiext.github.com/ since then. After Yii moved to GitHub, he started contributing to the Yii framework code too, and since August 2012 he has been an active member of the Yii framework developer team.

Brett Gregson is a PHP/iOS software developer based in South Africa. His main area of expertise is user interface design and user experience. He is a big fan of the Yii framework and jQuery. He currently works at RAW Media Concepts in Johannesburg, South Africa.

Stephan Hohmann, having been raised in the reach of an 8086 IBM PC, had his career choice set in his early ages. After toying around with a plethora of programming languages and operating systems, Stephan has now settled mostly for Fedora Linux and web programming with PHP (for the time being). He is currently involved in making the Yii framework better and creating formidable applications with it.

Alexander Makarov is an experienced engineer from Russia, and a member of the Yii framework core team since 2010. He is the author of another book on the Yii framework called Yii 1.1 Application Development Cookbook, Packt Publishing.