Web Application Development with Yii 2 and PHP

Fast-track your web application development using the new generation Yii PHP framework
Preview in Mapt

Web Application Development with Yii 2 and PHP

Mark Safronov, Jeffrey Winesett

1 customer reviews
Fast-track your web application development using the new generation Yii PHP framework
Mapt Subscription
FREE
$29.99/m after trial
eBook
$15.40
RRP $21.99
Save 29%
Print + eBook
$35.99
RRP $35.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$15.40
$35.99
$29.99 p/m after trial
RRP $21.99
RRP $35.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Web Application Development with Yii 2 and PHP Book Cover
Web Application Development with Yii 2 and PHP
$ 21.99
$ 15.40
Yii2 Application Development Cookbook - Third Edition Book Cover
Yii2 Application Development Cookbook - Third Edition
$ 39.99
$ 28.00
Buy 2 for $32.90
Save $29.08
Add to Cart

Book Details

ISBN 139781783981885
Paperback406 pages

Book Description

Yii is a high performance PHP framework used for rapid web application development. It is well designed, well supported, easy to learn, and easy to maintain. This book embraces the learn-by-example methodology to show you the most important features of the Yii 2 framework. Throughout the course of this book, you will build a simple real-world application; each chapter will introduce you to a new functionality and show you how to tweak your application. Instead of trying to be an all-encompassing reference about the framework, this is a walkthrough of the really important pieces of information that you have to understand in detail.

You will learn how to use Yii's active record and CRUD scaffolding to manage the data in your database. Authentication, extensions, events and behaviors, and route management are just some of the many other features of Yii that you will learn from this book. By the end of this book, you will have a basic CRM application that is all set for service!

Table of Contents

Chapter 1: Getting Started
A basic application
An advanced application
Summary
Chapter 2: Making a Custom Application with Yii 2
The design stage
Initial preparations
Introducing the Yii framework into our application
Making the data and application layers
Creating the user interface
Using the application
Summary
Chapter 3: Automatically Generating the CRUD Code
Definition of the model to work with
Using Gii
Finishing touches
An overview of the generated CRUD UI
Pros and cons of generated classes over manually created ones
Summary
Chapter 4: The Renderer
Anatomy of Yii rendering
The Yii application components
The View component
Custom renderers
A custom response formatter
The asset bundles
Themes
Widgets
Summary
Chapter 5: User Authentication
Anatomy of the user login in Yii
Password-based login mechanics in general
Making the user management interface
Hashing a password upon saving a user record
Making a user record into an identity
Making the login interface
Summary
Chapter 6: User Authorization and Access Control
Access control using the state of user authentication
Role-based access control
Protecting the CRM management from CRM users
Summary
Chapter 7: Modules
FEATURE – Yii modules
Building the API module
Retrospective on the modules mentioned in previous chapters
Summary
Chapter 8: Overall Behavior
FEATURE – message log
FEATURE – profiling
Error handling details
Caching
Minimizing the assets
Summary
Chapter 9: Making an Extension
Extension idea
Creating the extension contents
Making the extension installable as... erm, extension
Summary
Chapter 10: Events and Behaviors
Automatically marking database records with the timestamp and user ID
FEATURE – behaviors
FEATURE – events
Built-in events
Summary
Chapter 11: The Grid
Dismissing of the domain layer
Designing for the customers' index
FEATURE – widgets
Creating the index page for customers
Summary
Chapter 12: Route Management
Yii 2 routing 102
FEATURE – routing using names of modules, controllers, and actions
Custom routes using a configuration
Custom routes using custom URL rule classes
Summary
Chapter 13: Collaborative Work
Configuration construction
Console application
Database migrations
Summary

What You Will Learn

  • Build a complete application boilerplate with a single shell command and transform it into a running website with another
  • Generate code for routine CRUD interface pages
  • Make a vile extension just for fun and learn how to attach it to a target application
  • Control and customize the output that will be sent to the client browser
  • Authenticate users using a classic password-based technique and authorize them using role-based access control
  • Prepare your application for multiple users and deployment to a production environment
  • Answer mind-boggling SEO feature requests by modifying the route handling mechanism

Authors

Table of Contents

Chapter 1: Getting Started
A basic application
An advanced application
Summary
Chapter 2: Making a Custom Application with Yii 2
The design stage
Initial preparations
Introducing the Yii framework into our application
Making the data and application layers
Creating the user interface
Using the application
Summary
Chapter 3: Automatically Generating the CRUD Code
Definition of the model to work with
Using Gii
Finishing touches
An overview of the generated CRUD UI
Pros and cons of generated classes over manually created ones
Summary
Chapter 4: The Renderer
Anatomy of Yii rendering
The Yii application components
The View component
Custom renderers
A custom response formatter
The asset bundles
Themes
Widgets
Summary
Chapter 5: User Authentication
Anatomy of the user login in Yii
Password-based login mechanics in general
Making the user management interface
Hashing a password upon saving a user record
Making a user record into an identity
Making the login interface
Summary
Chapter 6: User Authorization and Access Control
Access control using the state of user authentication
Role-based access control
Protecting the CRM management from CRM users
Summary
Chapter 7: Modules
FEATURE – Yii modules
Building the API module
Retrospective on the modules mentioned in previous chapters
Summary
Chapter 8: Overall Behavior
FEATURE – message log
FEATURE – profiling
Error handling details
Caching
Minimizing the assets
Summary
Chapter 9: Making an Extension
Extension idea
Creating the extension contents
Making the extension installable as... erm, extension
Summary
Chapter 10: Events and Behaviors
Automatically marking database records with the timestamp and user ID
FEATURE – behaviors
FEATURE – events
Built-in events
Summary
Chapter 11: The Grid
Dismissing of the domain layer
Designing for the customers' index
FEATURE – widgets
Creating the index page for customers
Summary
Chapter 12: Route Management
Yii 2 routing 102
FEATURE – routing using names of modules, controllers, and actions
Custom routes using a configuration
Custom routes using custom URL rule classes
Summary
Chapter 13: Collaborative Work
Configuration construction
Console application
Database migrations
Summary

Book Details

ISBN 139781783981885
Paperback406 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Yii2 Application Development Cookbook - Third Edition Book Cover
Yii2 Application Development Cookbook - Third Edition
$ 39.99
$ 28.00
Yii2 By Example Book Cover
Yii2 By Example
$ 35.99
$ 25.20
Mastering Yii Book Cover
Mastering Yii
$ 39.99
$ 8.00
Oracle CRM On Demand Administration Essentials Book Cover
Oracle CRM On Demand Administration Essentials
$ 29.99
$ 21.00
Learning Yii Testing Book Cover
Learning Yii Testing
$ 29.99
$ 21.00
Agile Web Application Development with Yii1.1 and PHP5 Book Cover
Agile Web Application Development with Yii1.1 and PHP5
$ 23.99
$ 16.80