Mastering Yii

Advance your modern web application development skills with Yii Framework 2
Preview in Mapt

Mastering Yii

Charles R. Portwood II

2 customer reviews
Advance your modern web application development skills with Yii Framework 2
Mapt Subscription
FREE
$29.99/m after trial
eBook
$8.00
RRP $39.99
Save 79%
Print + eBook
$49.99
RRP $49.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
$8.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Mastering Yii Book Cover
Mastering Yii
$ 39.99
$ 8.00
Web Application Development with Yii 2 and PHP Book Cover
Web Application Development with Yii 2 and PHP
$ 21.99
$ 15.40
Buy 2 for $23.40
Save $38.58
Add to Cart

Book Details

ISBN 139781785882425
Paperback380 pages

Book Description

The successor of Yii Framework 1.1, Yii2 is a complete rewrite of Yii Framework, one of the most popular PHP 5 frameworks for making modern web applications. The update embraces the best practices and protocols established with newer versions of PHP, while still maintaining the simple, fast, and extendable behavior found in its predecessor.

This book has been written to enhance your skills and knowledge with Yii Framework 2. Starting with configuration and how to initialize new projects, you’ll learn how to configure, manage, and use every aspect of Yii2 from Gii, DAO, Query Builder, Active Record, and migrations, to asset manager. You'll also discover how to automatically test your code using codeception.

With this book by your side, you’ll have all the skills you need to quickly create rich modern web and console applications with Yii2.

Table of Contents

Chapter 1: Composer, Configuration, Classes, and Path Aliases
Composer
Configuration
Components and objects
Path aliases
Summary
Chapter 2: Console Commands and Applications
Configuration and usage
Built-in console commands
Creating console commands
Summary
Chapter 3: Migrations, DAO, and Query Building
Connecting to databases
Writing database migrations
Database access objects
Query Builder
Data providers and data widgets
Data replication and load balancing
Summary
Chapter 4: Active Record, Models, and Forms
Configuring Gii
Active Record
Models
Forms
Summary
Chapter 5: Modules, Widgets, and Helpers
Modules
Widgets
Helpers
Summary
Chapter 6: Asset Management
Asset bundles
Third-party asset tools
Summary
Chapter 7: Authenticating and Authorizing Users
Authentication of users
Authorization
Flash messages
Hashing and encryption
Summary
Chapter 8: Routing, Responses, and Events
Routing
Requests
Responses
Events
Summary
Chapter 9: RESTful APIs
ActiveController
Authentication filters
Verb filters
Cross-origin resource headers
Rate Limiting
Error handling
Custom API controllers
Summary
Chapter 10: Testing with Codeception
Reasons for testing
Configuring Codeception with Yii2
Unit testing
Functional testing
Acceptance testing
Fixtures
Automatic change testing
Summary
Chapter 11: Internationalization and Localization
Configuring Yii2 and PHP
The application language
Message translations
Viewing file translations
Module translations
Widget translations
Summary
Chapter 12: Performance and Security
Caching
General performance enhancements
Security considerations
Summary
Chapter 13: Debugging and Deploying
Debugging
Deploying
Summary

What You Will Learn

  • Explore Yii2’s conventions and learn how to properly configure Yii2
  • Create both web and console applications
  • Reduce development time by learning to create classes automatically with Gii, Yii2’s automatic code generation tool
  • Use Yii2’s database migration tool
  • Manage and access databases with Active Record, DAO, and Query Builder
  • Handle user authentication and authorization within Yii2
  • Create RESTful APIs with Yii Framework 2
  • Test applications automatically with codeception

Authors

Table of Contents

Chapter 1: Composer, Configuration, Classes, and Path Aliases
Composer
Configuration
Components and objects
Path aliases
Summary
Chapter 2: Console Commands and Applications
Configuration and usage
Built-in console commands
Creating console commands
Summary
Chapter 3: Migrations, DAO, and Query Building
Connecting to databases
Writing database migrations
Database access objects
Query Builder
Data providers and data widgets
Data replication and load balancing
Summary
Chapter 4: Active Record, Models, and Forms
Configuring Gii
Active Record
Models
Forms
Summary
Chapter 5: Modules, Widgets, and Helpers
Modules
Widgets
Helpers
Summary
Chapter 6: Asset Management
Asset bundles
Third-party asset tools
Summary
Chapter 7: Authenticating and Authorizing Users
Authentication of users
Authorization
Flash messages
Hashing and encryption
Summary
Chapter 8: Routing, Responses, and Events
Routing
Requests
Responses
Events
Summary
Chapter 9: RESTful APIs
ActiveController
Authentication filters
Verb filters
Cross-origin resource headers
Rate Limiting
Error handling
Custom API controllers
Summary
Chapter 10: Testing with Codeception
Reasons for testing
Configuring Codeception with Yii2
Unit testing
Functional testing
Acceptance testing
Fixtures
Automatic change testing
Summary
Chapter 11: Internationalization and Localization
Configuring Yii2 and PHP
The application language
Message translations
Viewing file translations
Module translations
Widget translations
Summary
Chapter 12: Performance and Security
Caching
General performance enhancements
Security considerations
Summary
Chapter 13: Debugging and Deploying
Debugging
Deploying
Summary

Book Details

ISBN 139781785882425
Paperback380 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Web Application Development with Yii 2 and PHP Book Cover
Web Application Development with Yii 2 and PHP
$ 21.99
$ 15.40
PHP 7 Programming Cookbook Book Cover
PHP 7 Programming Cookbook
$ 39.99
$ 28.00
Yii2 Application Development Cookbook - Third Edition Book Cover
Yii2 Application Development Cookbook - Third Edition
$ 39.99
$ 28.00
PHP 7: Real World Application Development Book Cover
PHP 7: Real World Application Development
$ 69.99
$ 49.00
Bootstrap 4 - Responsive Web Design Book Cover
Bootstrap 4 - Responsive Web Design
$ 71.99
$ 50.40
Agile Web Application Development with Yii1.1 and PHP5 Book Cover
Agile Web Application Development with Yii1.1 and PHP5
$ 23.99
$ 16.80