Mastering Yii

Advance your modern web application development skills with Yii Framework 2

Mastering Yii

Mastering
Charles R. Portwood II

3 customer reviews
Advance your modern web application development skills with Yii Framework 2
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Preview in Mapt

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 3 reviews

Read More Reviews