Magento 2 Developer’s Guide

Want to download or buy Magento 2 Developer's Guide?

Click to download from Amazon →

Harness the power of Magento 2 – The most recent version of the world’s favourite e-Commerce platform for your online store About This Book Set up, configure, and power up your Magento environment from development to production Master the use of Web API to communicate with the Magento system and create custom services Create custom modules from scratch to extend the core functionality of the Magento system Who This Book Is For This book is intended primarily for intermediate to professional-level PHP developers who are interested in Magento development. For backend developers, several topics are covered that will enable you to modify and extend your Magento 2 store. Frontend developers will also find some coverage on how to customize the look of the site in the frontend. What You Will Learn Set up the development and production environment of Magento 2 Understand the new major concepts and conventions used in Magento 2 Build a miniature yet fully-functional module from scratch to manage your e-commerce platform efficiently Write models and collections to manage and search your entity data Dive into backend development such as creating events, observers, cron jobs, logging, profiling, and messaging features Get to the core of frontend development such as blocks, templates, layouts, and the themes of Magento 2 Use token, session, and Oauth token-based authentication via various flavors of API calls, as well as creating your own APIs Get to grips with testing Magento modules and custom themes, which forms an integral part of development In Detail Magento is one of the most exciting, flexible, and customizable e-commerce systems. It offers you an extensive suite of powerful tools for creating and managing an online store. After years of development, Magento 2 introduces itself with a strong emphasis on modularity, Web API’s, automated testing and overall new technology stack platform. The long-awaited Magento 2 release introduces a whole new e-commerce platform to develop online stores. The all new Magento 2 architecture, Web APIs, and a host of other features are equally challenging to master as much as they are exciting to use. This book will ease the learning curve by offering step-by-step guidance on how to extend the core functionality of your Magento 2 store. This book is your one-stop guide to build and customize a quality e-commerce website from the latest version of one of the largest, fastest growing, and most popular e-commerce platforms—Magento 2. We start off with an introduction to the fundamental concepts of Magento to give you a foundation to work from. We then move on to configure the development and basic production environment for Magento. After this, you’ll get to grips with the major concepts and conventions that are new to the Magento 2 platform. We then delve deeper to get to the core of automated deployments, persisting data, writing data fixture scripts and applying various backend and frontend modifications. As we near the end of the book, you will learn to make API calls and write automated tests. Finally, you will be guided through building a full-blown helpdesk module from scratch. By the end of this book, you will have learned a wide range of techniques to extend and customize your Magento 2 store to fit the requirements of your business. Style and approach This book is a mix of theoretical and step-by-step approaches, explained in a conversational and easy-to-follow style. Topics are explained sequentially, giving detailed explanations of the basic and advanced features to get you working on Magento 2.

Table of contents

Magento 2 Developer’s Guide
Table of Contents
Magento 2 Developer’s Guide
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Understanding the Platform Architecture
The architectural layers
The top-level filesystem structure
The module filesystem structure
Summary
2. Managing the Environment
Setting up a production environment
Summary
3. Programming Concepts and Conventions
Service contracts
Code generation
The var directory
Coding standards
Summary
4. Models and Collections
Understanding the flow of schema and data scripts
Creating an install schema script (InstallSchema.php)
Creating an upgrade schema script (UpgradeSchema.php)
Creating an install data script (InstallData.php)
Creating an upgrade data script (UpgradeData.php)
Entity CRUD actions
Creating new entities
Managing collections
Summary
5. Using the Dependency Injection
Dependency injection
Configuring class preferences
Using virtual types
Summary
6. Plugins
Using the before listener
Using the after listener
Using the around listener
The plugin sort order
Summary
7. Backend Development
Notification messages
Session and cookies
Logging
The profiler
Events and observers
Cache(s)
Widgets
Custom variables
i18n
Indexer(s)
Summary
8. Frontend Development
View elements
Summary
9. The Web API
Authentication methods
REST versus SOAP
Hands-on with token-based authentication
Hands-on with OAuth-based authentication
OAuth-based Web API calls
Hands-on with session-based authentication
Creating custom Web APIs
Search Criteria Interface for list filtering
Summary
10. The Major Functional Areas
Catalog management
Customer management
Products and customers import
The custom product types
Custom offline shipping methods
Custom offline payment methods
Summary
11. Testing
Unit testing
Integration testing
Static testing
Integrity testing
Legacy testing
Performance testing
Functional testing
Writing a simple unit test
Summary
12. Building a Module from Scratch
Registering a module
Creating a configuration file (config.xml)
Creating e-mail templates (email_templates.xml)
Creating a system configuration file (system.xml)
Creating access control lists (acl.xml)
Creating an installation script (InstallSchema.php)
Managing entity persistence (model, resource, collection)
Building a frontend interface
Building a backend interface
Creating unit tests
Summary
Index


Is Magento 2 Developer's Guide Free to Download?

No, i'm afraid not. Every single book that we feature on Allbooks.co is a paid-for, premium publication that you have to part your hard earned cash for. There is no point trying to find a free download of Magento 2 Developer's Guide so please don't waste your time looking. Head over to Amazon to buy a physical or digital copy of Magento 2 Developer's Guide. You can also buy a subscription from Perlego and gain access to over 500k textbooks and educational resources.

It is highly unlikely that you'll be able to find Magento 2 Developer's Guide for free. There's a lot of websites that will say "Free Download" but these are just attempts to get you to click on a link which will either take you to an ad landing page or you risk getting viruses on your computer. In the rare occasion that you do find a free download for Magento 2 Developer's Guide remember that it's illegal to download a book if you didn't pay for it!

If you really want Magento 2 Developer's Guide and you want to truly own it the legal and safe way, then click here to visit the download and purchase page on Amazon.com. The author and publisher deserves to be paid for their work, as they have put in the hours and the creativity to produce such an amazing publication / book.