*** Key Features ***
* Learn to work with the key aspects of Yii Framework 2
* Explore how to create RESTful APIs with Yii
* Incorporate codeception with Yii2 to test your code thoroughly
*** Book Description ***
The successor of Yii Framework 1.1, Yii2 is a complete rewrite of Yii Framework, more » 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.
*** 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
*** About the Author ***
Charles R. Portwood II has over 10 years of experience developing modern web applications and is well versed in integrating PHP with native mobile applications. An avid proponent of Yii Framework and open source software, Charles has contributed multiple guides, extensions, and applications to the Yii community. In addition to being a programmer, he is also a Linux system administrator.
*** Table of Contents ***
1. Composer, Configuration, Classes, and Path Aliases
2. Console Commands and Applications
3. Migrations, DAO, and Query Building
4. Active Record, Models, and Forms
5. Modules, Widgets, and Helpers
6. Asset Management
7. Authenticating and Authorizing Users
8. Routing, Responses, and Events
9. RESTful APIs
10. Testing with Codeception
11. Internationalization and Localization
12. Performance and Security
13. Debugging and Deploying « less
Embrace 360-degree testing on your Yii 2 projects using Codeception
ABOUT THIS BOOK
* Learn all about testing with an in-depth analysis of software architecture and modern testing technologies.
* Boost your testing knowledge and apply it to real-world scenarios through practical examples and behind the scenes knowledge
* Develop your applications using a test-first more » approach making full use of Codeception and Yii 2.
WHO THIS BOOK IS FOR
Developers who have a solid pre-existing knowledge of Yii's core concepts will find this book an ideal introduction to learning to write tests using Yii 2's tools. You'll learn to create faster and more reliable applications with less time and effort.
WHAT YOU WILL LEARN
* Understand what testing is, why you need it, and what it encompasses
* Explore testing using all the features and improvements made available with Yii 2
* Embrace the Codeception testing framework and exploit its potential
* Carefully manage the scope of tests according to the application you're writing
* Write PHPUnit tests using the full range of its capabilities
* Script functional tests and test REST interfaces
* Write acceptance tests and make the best use of existing frameworks such as Selenium
* Discover how to abstract the knowledge you've learned and apply it to any situation
Testing your application often and early is a key consideration in modern web development. PHP developers using the high-performance PHP framework Yii have access to Codeception, a testing suite that provides comprehensive support for unit, functional, and acceptance tests. With Codeception, you will quickly learn how to create fast, stable applications using a test-driven development methodology. Learning Yii Testing embraces a testing-first strategy to guide you in the implementation of all possible types of tests, covering the core features of Yii 2. Starting with the nuts and bolts of testing, you'll walk through Yii 2's new functionality and improvements and learn how to begin testing with it. You'll explore the world of Codeception and gain insights into key topics such as testing in isolation and component integration tests.
You'll also learn to analyze testing information and improve the quality of your code. At the end of the book, you will be able to use automation tools to reduce your testing workload. « less
Developing Web Applications using the Yii PHP Framework
This is the 24th book that I’ve written, and of the many things I’ve learned in that time, a reliable fact is this: readers rarely read the introduction. Still, I put a fair amount of time into the introduction and would ask you to spend the five minutes required to read it.
In this particular introduction, more » I provide the arguments for (and against) frameworks, and the Yii framework specifically. I also explain what knowledge and technical requirements are expected of you, the dear reader. And if that was not enough, the introduction concludes by providing you with resources you can use to seek help when you need it. « less
Developing Web Applications Using the Yii PHP Framework
A clear, concise, and thorough guide to the Yii framework.
Fast-track your web application development using the new generation Yii PHP framework
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 more » 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. « less
From conception to production, learn how to develop real-world applications with the Yii framework
The Yii framework is a high-performance, fast, open source, and a rapid development PHP framework that can be used to develop modern web applications. It provides the toolkit for developing both personal projects and enterprise applications. Yii's component-based architecture lets developers build modules more » so that they aren't customizing the underlying code base and so that anything they build is easy to use in different projects.
This book is a step-by-step guide to developing reusable real-world applications using the Yii framework. The book will guide you through several projects from the project conception through to planning your project and implementation. « less
Learn to create multi-page AJAX enabled forms using Yii with this book and ebook
Yii is a high-performance PHP framework for rapid web application development. It is well-designed, well-supported, easy to learn, and easy to maintain. Forms are the basic method used to collect information on the Internet, and in cases like user registration and payment process, there’s a lot of data more » to be presented and the lists can get lengthy.
Instant Building Multi-Page Forms with Yii is a simple and descriptive how-to that provides step-by-step recipes to help you in converting your lengthy forms into short, interactive forms. It will guide you through the inbuilt features of Yii framework to help you with this complex job.
The book starts with the basics of Yii and will guide you through creating simple forms before then converting your simple forms into multi-page forms. It will use the capabilities of Yii to ease the tasks required to do this.
Yii eases your work by providing options like database connectivity. We will also take a look at the automated code generation capabilities of Yii in generating forms and necessary CRUD operations, as well as looking at how to divide a single long form into multiple views with same controller/action, and then add form validations and AJAX support to the forms. We will also cover the upload process and how to customise Yii’s looks. « less
A Cookbook covering both practical Yii application development tips and the most important Yii features
The Yii framework is a rapidly growing PHP5 MVC framework often referred to as Rails for PHP. It has already become a solid base for many exciting web applications such as Stay.com and can be a good base for your developments, too. This book will help you to learn Yii quickly and in more depth for use more » in for your developments.
Yii Application Development Cookbook will show you how to use Yii efficiently. You will learn about taking shortcuts using core features, creating your own reusable code base, using test driven development, and many more topics that will give you a lot of experience in a moderate amount of time. « less
Learn the Yii application development framework by taking a step-by-step approach to building a Web-based project task tracking system from conception through production deployment
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 more » development lifecycle by building a project task management application from concept through production deployment. « less
A series of projects to help you learn Yii and Rapid Application Development. Learn how to build and incorporate key web technologies. Use as a cookbook to look up key concepts, or work on the projects from start to finish for a complete web application.