Zend Framework 2 (ZF2) has changed the way to develop PHP applications and like every revolution takes time to be digested.
The book will help you understand the major components in ZF2 and how to use them as best as possible. The chapters in this book will lead you through the different components and in the process together with the author you will build a complete application.
"In this book Slavey shares his real life experience with ZF2 projects, as a senior consultant at Zend Technologies, and hits all the major challenges you may face. It is a must-have if you want a quick start and proficiency in ZF2."
Andi Gutmans & Zeev Suraski
The chapters in the book are accompanied by source code that you could copy, and it will help you learn by example.
Slavey Karadzhov is a full time senior consultant at Zend Technologies. He is located in Stuttgart, Germany and travels the world while trying, among other things, to help people get better understanding about programming and Zend Framework in particular. Slavey Karadzhov has two major degrees: one in Software Technology from the University of Applied Science in Stuttgart, Germany, and the other in Computer Science from Sofia University, Bulgaria.
Each recipe includes code solutions that you can freely use, along with a discussion of how and why they work. Whether you’re an experienced PHP programmer or coming to PHP from another language, this book is an ideal on-the-job resource.
You’ll find recipes to help you with:Basic data types: strings, numbers, arrays, and dates and times Program building blocks: variables, functions, classes, and objects Web programming: cookies, forms, sessions, and authentication Database access using PDO, SQLite, and other extensionsRESTful API clients and servers, including HTTP, XML, and OAuth Key concepts: email, regular expressions, and graphics creation Designing robust applications: security and encryption, error handling, debugging and testing, and performance tuning Files, directories, and PHP’s Command Line Interface Libraries and package managers such as Composer and PECL
Learn how these reusable patterns help you solve complex problems, organize object-oriented code, and revise a big project by only changing small parts. With Learning PHP Design Patterns, you’ll learn how to adopt a more sophisticated programming style and dramatically reduce development time.Learn design pattern concepts, including how to select patterns to handle specific problemsGet an overview of object-oriented programming concepts such as composition, encapsulation, polymorphism, and inheritanceApply creational design patterns to create pages dynamically, using a factory method instead of direct instantiationMake changes to existing objects or structure without having to change the original code, using structural design patternsUse behavioral patterns to help objects work together to perform tasksInteract with MySQL, using behavioral patterns such as Proxy and Chain of ResponsibilityExplore ways to use PHP’s built-in design pattern interfaces
The primary target of this book is Drupal developers who want to learn how to write modules and carry out development in Drupal 8. It is also intended for Drupal site builders and PHP developers who have basic Object Oriented Programming skills.
A little bit of Symfony experience is helpful but not mandatory.What You Will LearnWrite a Drupal 8 module with custom functionality and hook into various extension pointsMaster numerous Drupal 8 sub-systems and APIsModel, store, and manipulate data in various ways and for various purposesDisplay data and content in a presentable and secure wayLearn about the theme system and render arraysIn Detail
Drupal is an open source web-based content management system (CMS) that can be used for building anything from simple websites to complex applications. It enables individuals and organizations to build platforms that engage users and deliver the right content at the right time.
Drupal 8 is an exciting new development in the Drupal community. However, the differences from the previous version are substantial and this can put quite some pressure on Drupal 7 developers that need to catch up. This book aims to help such developers in getting up to speed with Drupal 8 module development.
The book first introduces you to the Drupal 8 architecture and its subsystems before diving into creating your first module with basic functionality. Building upon that, you will cover many core APIs and functionalities available to module developers.
You will work with the Drupal logging and mailing systems, learn how to output data using the theme layer and work with menus and links programmatically. Then, you will learn how to work with different kinds of data storages, create custom entities, field types and leverage the Database API for lower level database queries. Moreover, you will learn about the Drupal 8 access system and caching layer as well as the APIs used for data processing (queues and batches).
By the end of the book, you will have learned how to develop your own custom module from scratch that can help solve a small problem or even provide complex functionality. And who knows, maybe you'll even contribute it back to the Drupal community.Style and approach
This book aims to introduce PHP developers to programming concepts specific to Drupal 8 to get them started on writing their own functionality with Drupal 8 and create efficient Drupal 8 modules and extensions.
Author Josh Lockhart—creator of PHP The Right Way, a popular initiative to encourage PHP best practices—reveals these new language features in action. You’ll learn best practices for application architecture and planning, databases, security, testing, debugging, and deployment. If you have a basic understanding of PHP and want to bolster your skills, this is your book.Learn modern PHP features, such as namespaces, traits, generators, and closuresDiscover how to find, use, and create PHP componentsFollow best practices for application security, working with databases, errors and exceptions, and moreLearn tools and techniques for deploying, tuning, testing, and profiling your PHP applicationsExplore Facebook’s HVVM and Hack language implementations—and how they affect modern PHPBuild a local development environment that closely matches your production server