This book is for intermediate-to-advanced level Yii developers who want to master the Yii framework and develop real-world applications. You should have experience of working with Yii, PHP 5, HTML, CSS, and JavaScript.
This book is for intermediate-to-advanced level Yii developers who want to master the Yii framework and develop real-world applications. You should have experience of working with Yii, PHP 5, HTML, CSS, and JavaScript.
Advance your modern web application development skills with Yii Framework 2 About This Book 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 Who This Book Is For This book is for Yii Framework developers who want to quickly master Yii2. This book assumes some familiarity with Yii2, PHP 5, and HTML5. 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 In Detail 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. Style and approach This book is a step-by-step guide to mastering every aspect of Yii Framework 2. Each chapter outlines a new set of tools along with code that can be used to efficiently create modern web and console applications
Develop complete web applications from scratch through practical examples and tips for beginners and more advanced users About This Book Improve your programming experience and become a full stack developer Master real-life web applications, and create and manage four different projects Step-by-step guidance to develop real-world web applications smoothly Who This Book Is For This book is for anyone who wants to discover and explore Yii Framework. Basic programming experience with PHP and object oriented programming is assumed. What You Will Learn Understand basic concepts, along with the installation and customization of Yii Discover models, controllers, and views—concepts applied in a web context—and how they are employed in Yii Use ActiveRecord to manipulate a database Add access control to your web application through authentication and authorization Install and customize an advanced template for multiple applications in the same project Create a RESTful Web Service to allow remote access to data Develop a console application to launch a command in the console as an automated task (cron job) Make code reusable through widgets and components and localize text messages to make a multilanguage web app In Detail Yii is a high-performance PHP framework best for developing Web 2.0 applications. It provides fast, secure, and professional features to create robust projects, however, this rapid development requires the ability to organize common tasks together to build a complete application. It's all too easy to get confused; this is where this book comes in. This book contains a series of practical project examples for developers starting from scratch. Each section contains the most relevant theories for every topic as you walk through developing each project, focusing on key aspects that commonly confuse users. The book starts with all the framework's basic concepts, such as controllers and views, to introduce you to Yii and creating your first application, a simple news reader. You will be learn to configure URL rules to make a pretty URL, essential for search engine optimization. Next, you will walk through Model and ActiveRecord, key concepts in database interaction. The second application you will develop is a reservation system that allows you to manage rooms, customers, and reservations. For this, you will use database connection through SQL and ActiveRecord. More complex than the first one, this application will introduce you to the advanced template of Yii 2, splitting the app into two parts: a frontend for all visitors and a backend for the admin. Finally, you will move on to the last two applications: one that allows connections from remote clients, through RESTful components of Yii 2, and another that creates and organizes automatic tasks using the console application structure of Yii 2. Style and approach This is a step-by-step guide with each topic introduced in the context of real-world applications, highlighting common cases where users may encounter difficulties.
If you are a PHP programmer or developer looking for a framework to quickly develop your applications, this book is for you. The prerequisites needed would be prior experience with CodeIgniter.
Discover 100 useful recipes that will bring the best out of the Yii2 framework and be on the bleeding edge of web development today About This Book Learn how to use Yii2 efficiently through clear examples and core features, and see how to use tests, create reusable code snippets, core widgets, deployment, and more This book provides you with a wide space for practice approaches and helps you to learn about the new Yii2 framework. Understand the difference between the Yii 1.x.x versions using useful examples from real web applications Who This Book Is For This book is for developers with good PHP5 knowledge and MVC-frameworks who have tried to develop applications using the Yii 1.x.x version. This book will very useful for all those who would like to try Yii2, or those who are afraid to move from Yii 1.x.x. to Yii2. If you have still not tried Yii2, this book is definitely for you! What You Will Learn See the new version of the Yii2 framework and application development practices Write your applications more efficiently using shortcuts, Yii's core functionality, and the best practices in Web 2.0 Get data from a database, and deal with Active Record, migrations, widgets, and core features Easily update your skills from the previous version of the framework Explore how to use Yii with different JavaScript frameworks and libraries such as WebSockets, Angular, Ember, Backbone and React Learn how to keep your application secure according to the general web application security principle "filter input, escape output. Write RESTfull Web Services using Yii2 and built-in features Correctly install and use official extensions in your projects Effectively create and implement your own Yii extension, and also ensure your extension is reusable and useful for the community In Detail 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. Style and approach The chapters of this book are independent and offer a practical approach to Yii development. You can start reading from the chapter you need most, be it Ajax and jQuery, RESTful Web Services, Database, Active Record, or Official Extensions
From conception to production, learn how to develop real-world applications with the Yii framework In Detail 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 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. You will explore the key features of the framework and learn how to use it efficiently and effectively to build solid core applications that you'll be able to reuse in real-world projects. At the end of each project, you'll have a better understanding of Yii and a working application that you can use in the future. What You Will Learn Organize and structure your projects from start to finish Create applications from scratch and use Gii to create models Use Yii database migrations to create database agnostic applications and manage your database changes Create secure multiuser role-based applications that use Bcrypt password hashing Integrate with third-party libraries using Composer Develop console applications that seamlessly integrate with your applications Utilize SendGrid to send and receive e-mails within your application Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
This book is a collection of Yii recipes with chapters generally independent of each other. It is full of practically useful solutions and concepts explained with code and relevant screenshots and diagrams.This book is for developers with good PHP5 knowledge who have tried to develop applications using Yii. An object-oriented approach and MVC knowledge will be a great advantage as Yii uses these extensively.
This book is for professional PHP developers who wish to master the powerful Yii 2 application framework. It is assumed that you have knowledge of object-oriented programming. The previous version of the Yii framework is only briefly mentioned, but it'll be even easier to grasp Yii 2 with the knowledge of Yii 1.1.x.