Yii2 Application Development Cookbook 3rd Edition by Andrew Bogdanov, Dmitry Eliseev – Ebook PDF Instant Download/Delivery: 1785281496, 9781785281495
Full download Yii2 Application Development Cookbook 3rd Edition after payment
Product details:
ISBN 10: 1785281496
ISBN 13: 9781785281495
Author: Andrew Bogdanov, Dmitry Eliseev
Yii is a free, open source web application development framework written in PHP5 that promotes clean DRY design and encourages rapid development. It works to streamline your application development time and helps to ensure an extremely efficient, extensible, and maintainable end product. Being extremely performance optimized, Yii is a perfect choice for any size project. However, it has been built with sophisticated, enterprise applications in mind. You have full control over the configuration from head-to-toe (presentation-to-persistence) to conform to your enterprise development guidelines. It comes packaged with tools to help test and debug your application, and has clear and comprehensive documentation.
This book is a collection of Yii2 recipes. Each recipe is represented as a full and independent item, which showcases solutions from real web-applications. So you can easily reproduce them in your environment and learn Yii2 fast and without tears. All recipes are explained with step-by-step code examples and clear screenshots.
Yii2 is like a suit that looks great off the rack, but is also very easy to tailor to fit your needs. Virtually every component of the framework is extensible. This book will show how to use official extensions, extend any component, or write a new one.
This book will help you create modern web applications quickly, and make sure they perform well using examples and business logic from real life. You will deal with the Yii command line, migrations, and assets. You will learn about role-based access, security, and deployment. We’ll show you how to easily get started, configure your environment, and be ready to write web applications efficiently and quickly.
Table of contents:
1. Fundamentals
Introduction
Installing the framework
Getting ready
How to do it…
Installing a basic project template
Installing advanced project template
How it works…
See also
Application templates
How to do it…
How it works…
Dependency injection container
Getting ready
How to do it…
How it works…
See also
Service locator
Getting ready
How to do it…
How it works…
See also
Code generation
Getting ready
How to do it…
How it works…
Configuring components
Getting ready
How to do it…
How it works…
Built-in components
See also
Working with events
Getting ready
How to do it…
How it works…
See also
Using external code
Getting ready
How to do it…
Installing a library via Composer
Installing libraries manually
Using Yii2 code in other frameworks
How it works…
See also
2. Routing, Controllers, and Views
Introduction
Configuring URL rules
Getting ready
How to do it…
How it works…
There’s more…
See also
Generating URLs
Getting ready
How to do it…
How it works…
There’s more…
See also
Using regular expressions in URL rules
Getting ready
How to do it…
How it works…
There’s more…
See also
Using a base controller
Getting ready
How to do it…
How it works…
There’s more…
Using standalone actions
Getting ready
How to do it…
How it works…
See also
Creating a custom filter
Getting ready
How to do it…
How it works…
See also
Displaying static pages
Getting ready
How to do it…
How it works…
There’s more…
About ViewAction
Configuring URL rules
See also
Using flash messages
Getting ready
How to do it…
How it works…
There’s more…
The getAllFlashes() method
The removeAllFlashes() method
The removeFlash() method
See also
Using the controller context in a view
Getting ready
How to do it…
How it works…
There’s more…
Reusing views with partials
Getting ready
How to do it…
How it works…
There’s more…
Using blocks
Getting ready
How to do it…
How it works…
There’s more…
Using decorators
Getting ready
How to do it…
How it works…
See also
Defining multiple layouts
Getting ready
How to do it…
How it works…
See also
Pagination and sorting data
Getting ready
How to do it…
How it works…
See also
3. ActiveRecord, Model, and Database
Introduction
Getting data from a database
Getting ready
How to do it…
How it works…
There’s more…
Defining and using multiple DB connections
Getting ready
How to do it…
How it works…
There’s more…
Cross-database relations
See also
Customizing the ActiveQuery class
Getting ready
How to do it…
How it works…
There’s more…
See also
Processing model fields with AR event-like methods
Getting ready
How to do it…
How it works…
See also
Automating timestamps
Getting ready
How to do it…
How it works…
There’s more…
In addition…
See also
Setting up an author automatically
Getting ready
How to do it…
How it works…
There’s more…
See also
Setting up a slug automatically
Getting ready
How to do it…
How it works…
There’s more…
See also
Transactions
Getting ready…
How to do it…
See also
Replication and read-write splitting
Getting ready
How to do it…
How it works…
There’s more…
See also
Implementing single table inheritance
Getting ready
How to do it…
How it works…
See also
4. Forms
Introduction
Writing your own validators
Getting ready
How to do it…
How it works…
See also
Uploading files
Getting ready
How to do it…
How it works…
There’s more…
See also
Adding and customizing CaptchaWidget
Getting ready
How to do it…
How it works…
There’s more…
Customizing Captcha
Getting ready
How to do it…
See also
Creating a custom input widget
Getting ready
How to do it…
How it works…
There’s more…
See also
Tabular input
Getting ready
How to do it…
How it works…
See also
Conditional validation
Getting ready
How to do it…
How it works…
See also
Complex forms with multiple models
Getting ready
How to do it…
How it works…
See also
AJAX-dependent drop-down list
Getting ready
How to do it…
How it works…
AJAX validation
Getting ready
How to do it…
How it works…
See also
Creating a custom client-side validation
Getting ready
How to do it…
How it works…
There’s more…
See also
5. Security
Introduction
Authentication
Getting ready
How to do it…
How it works…
See also
Using controller filters
Getting ready
How to do it…
How it works…
See also
Preventing XSS
Getting ready
How to do it…
How it works…
There’s more…
XSS types
See also
Preventing SQL injections
Getting ready
How to do it…
How it works…
See also
Preventing CSRF
Getting ready
How to do it…
How it works…
There’s more…
Disabling CSRF-tokens for a specific action
CSRF validation for Ajax-calls
Additionally
Using GET and POST properly
See also
Using RBAC
Getting ready
How to do it…
How it works…
There’s more…
Keeping hierarchy simple and efficient
Naming RBAC nodes
See also
Encrypting/Decrypting data
Getting ready
How to do it…
How it works…
There’s more…
Working with passwords
See also
6. RESTful Web Services
Introduction
Creating a REST server
Getting ready
How to do it…
How it works…
There’s more…
Content negotiation
Customizing the Rest URL rule
See also
Authentication
Getting ready
How to do it…
How it works…
There’s more…
See also
Rate limiting
Getting ready
How to do it…
How it works…
See also
Versioning
Getting ready
How to do it…
How it works…
There’s more…
Error handling
Getting ready
How to do it…
How it works…
See also
7. Official Extensions
Introduction
Authentication client
Getting ready
How to do it…
How it works…
See also
SwiftMailer e-mail library
Getting ready
How to do it…
Sending plain text e-mails
Sending HTML content
Working with SMTP transport
Attaching file and embedding images
How it works…
See also
Faker fixture data generator
Getting ready
How to do it…
Working with your own data types
How it works…
See also
Imagine library
Getting ready
How to do it…
Using it as a factory
Using inner methods
How it works…
See also
MongoDB driver
Getting ready
How to do it…
Basic usage
How it works…
See also
ElasticSearch engine adapter
Getting ready
How to do it…
Using the Query class
Using ActiveRecord
Using the ElasticSearch DebugPanel
How it works…
See also
Gii code generator
Getting ready
How to do it…
Working with GUI
Working with CLI
How it works…
See also
Pjax jQuery plugin
Getting ready
How to do it…
Specifying a custom ID
Using ActiveForm
Working with the client-side script
How it works…
See also
Redis database driver
Getting ready
How to do it…
Direct usage
Using ActiveRecord
How it works…
See also
8. Extending Yii
Introduction
Creating helpers
Getting ready
How to do it…
How it works…
See also
Creating model behaviors
Getting ready
How to do it…
How it works…
See also
Creating components
Getting ready
How to do it…
Overriding existing application components
How it works…
See also
Creating reusable controller actions
Getting ready
How to do it…
How it works…
See also
Creating reusable controllers
Getting ready
How to do it…
How it works…
See also
Creating a widget
Getting ready
How to do it…
How it works…
See also
Creating CLI commands
Getting ready
How to do it…
How it works…
See also
Creating filters
Getting ready
How to do it…
How it works…
See also
Creating modules
Getting ready
How to do it…
How it works…
See also
Creating a custom view renderer
Getting ready
How to do it…
How it works…
See also
Creating a multilanguage application
Getting ready
How to do it…
How it works…
See also
Making extensions distribution-ready
Getting ready
How to do it…
How it works…
See also
9. Performance Tuning
Following best practices
Getting ready
How to do it…
How it works…
See also
Speeding up session handling
Getting ready
How to do it…
How it works…
There’s more…
See also
Using cache dependencies and chains
Getting ready
How to do it…
How it works…
See also
Profiling an application with Yii
Getting ready
How to do it…
How it works…
See also
Leveraging HTTP caching
Getting ready
How to do it…
How it works…
Last-Modified
Entity Tag
See also
Combining and minimizing assets
Getting ready
How to do it…
How it works…
See also
Running Yii2 on HHVM
Getting ready
How to do it…
How it works…
See also
10. Deployment
Introduction
Changing the Yii directory layout
Getting ready
How to do it…
Changing the location of the runtime directory
Changing the location of the vendor directory
Changing the location of the controllers
Changing the locations of the views directory
How it works…
See also
Moving an application webroot
Getting ready
How to do it…
Placing files in the root
Placing files in a subdirectory
How it works…
See also
Changing an advanced application template
Getting ready
How to do it…
How it works…
See also
Moving configuration parts into separate files
Getting ready
How to do it…
How it works…
See also
Using multiple configurations to simplify the deployment
Getting ready
How to do it…
How it works…
See also
Implementing and executing cron jobs
Getting ready
How to do it…
Running the Hello command
Creating your own command
Setting the cron schedule
How it works…
See also
Maintenance mode
Getting ready
How to do it…
How it works…
See also
Deployment tools
Getting ready
How to do it…
Step 1 – Preparing the remote host
Step 2 – Preparing the localhost
Step 3 – Adding remote configuration
Step 4 – Trying to deploy
How it works…
See also
11. Testing
Introduction
Testing application with Codeception
Getting ready
How to do it…
Preparing for the tests
Running unit and functional tests
Getting coverage reports
Running acceptance tests
Creating database fixtures
Writing unit or integration test
Writing functional test
Writing acceptance test
Creating API test suite
How it works…
See also
Unit testing with PHPUnit
Getting ready
How to do it…
Preparing extension structure
Writing extension code
Writing extension tests
Running tests
Analyzing code coverage
Usage of component
How it works…
See also
Unit testing with Atoum
Getting ready
How to do it…
Preparing the extension structure
Writing the extension code
Writing the extension tests
Running tests
Analyzing code coverage
How it works…
See also
Unit testing with Behat
Getting ready
How to do it…
Preparing extension structure
Writing extension code
Writing extension tests
Running tests
How it works…
See also
12. Debugging, Logging, and Error Handling
Introduction
Using different log routes
Getting ready
How to do it…
How it works…
There’s more…
Yii::trace versus Yii::getLogger()->log
Yii::beginProfile and Yii::endProfile
Log messages immediately
See also
Analyzing the Yii error stack trace
Getting ready
How to do it…
How it works…
See also
Logging and using the context information
Getting ready
How to do it…
How it works…
See also
Displaying custom errors
Getting ready
How to do it…
How it works…
See also
Custom panel for debug extension
Getting ready
How to do it…
How it works…
Handling events
See also
People also search:
yii2 application development cookbook – third edition
yii2 application development cookbook
yii2 application development cookbook pdf
yii2 application development cookbook – third edition pdf
Tags: Andrew Bogdanov, Dmitry Eliseev, Application, Cookbook