Magento PHP Developer’s Guide

Get started with the flexible and powerful e-commerce framework, Magento

$26.99

$44.99

RRP $26.99

RRP $44.99

eBook

Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782163060

Paperback256 pages

About This Book

Build your first Magento extension, step by step

Extend core Magento functionality, such as the API

Learn how to test your Magento code

Who This Book Is For

This book is written for developers who have previous experience with PHP and PHP frameworks, such as Zend or CakePHP, and want to start developing and working with Magento. Even developers with previous experience with Magento will find the book extremely useful to gain a full understanding of Magento fundamentals, architecture, and overall philosophy.

Table of Contents

Chapter 1: Understanding and Setting Up Our Development Environment

LAMP from scratch

Up and running with Vagrant

Choosing an IDE

Working with a version control system

Summary

Chapter 2: Magento Fundamentals for Developers

Zend Framework – the base of Magento

Magento folder structure

Modular architecture

Routing and request flow

Magento version of MVC

Websites and store scopes

Factory names and functions

Events and observers

Summary

Chapter 3: ORM and Data Collections

Magento Model Anatomy

EAV Model

Working with Magento collections

Using Direct SQL

Summary

Chapter 4: Frontend Development

Extending Magento

Hello Magento

XML module configuration

Models and saving data

Setting up our routes

Block and layouts

Summary

Chapter 5: Backend Development

Extending the Adminhtml

The grid widget

The form widget

Summary

Chapter 6: The Magento API

The Core API

Using the API

Extending the API

Securing the API

Summary

Chapter 7: Testing and Quality Assurance

Testing Magento

Tools and testing frameworks

Creating our first test

Summary

Chapter 8: Deployment and Distribution

The road towards zero-downtime deployment

Version control system and deployment

Distribution

Publishing our extension

Summary

What You Will Learn

Understand the fundamental concepts of Magento

Deploy and distribute custom modules

Explore development techniques and tools for Magento

Extend Magento core functionality

Discover the design patterns which form Magento

Understand Magento architecture

Test Magento with different tools and frameworks

In Detail

Magento has completely reshaped the face of e-commerce since its launch in 2008. Its revolutionary focus on object oriented and EAV design patterns has allowed it to become the preferred tool for developers and retailers alike.

"Magento PHP Developer’s Guide" is a complete reference to Magento, allowing developers to understand its fundamental concepts, and get them developing and testing Magento code.

The book starts by building the reader’s knowledge of Magento, providing them with the information, techniques, and tools that they require to start their first Magento development.

After building this knowledge, the book will then look at more advanced topics: how to test your code, how to extend the frontend and backend, and deploying and distributing custom modules.

"Magento PHP Developer’s Guide" will help you navigate your way around your first Magento developments, helping you to avoid all of the most common headaches new developers face when first getting started.

Authors

Allan MacGregor

Allan MacGregor is a Magento Certified Developer Plus with four years of Magento experience. He also has a certification in Linux System Administration by IBM.
He started working with Magento as a freelance looking for a better framework to build e-commerce solutions, and he is now the Magento Lead Developer at Demac Media (www.demacmedia.com). He's very passionate about software development in general. He is constantly working with new technologies and frameworks.
At Demac Media, he has participated in building core solutions for a wide range of clients; this has given him the experience and knowledge to solve many Magento challenges.
As part of an internal project at Demac Media, he worked on Triplecheck.io (www.triplecheck.io), a unique service for monitoring and auditing the code health of a Magento store. You can also follow him on Twitter at http://www.twitter.com/allanmacgregor.

Alerts & Offers

Series & Level

We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives.

Learning

As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.

Beginner's Guide

Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges.

Essentials

Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world.

Cookbook

A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems.

Blueprints

Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably.

Mastering

Take your skills to the next level with advanced tutorials that will give you confidence to master the tool's most powerful features.

Starting

Accessible to readers adopting the topic, these titles get you into the tool or technology so that you can become an effective user.

Progressing

Building on core skills you already have, these titles share solutions and expertise so you become a highly productive power user.