Book Image

Magento PHP Developer's Guide

By : Allan MacGregor
Book Image

Magento PHP Developer's Guide

By: Allan MacGregor

Overview of this book

<p>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.</p> <p>"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.</p> <p>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.</p> <p>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.</p> <p>"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.</p>
Table of Contents (16 chapters)
Magento PHP Developer's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The Core API


Often while talking about the API, I heard developers talking about the Magento SOAP API or the Magento XML-RPC API or the RESTful API. But the important fact is that these are not separate APIs for each of these protocols; instead, Magento has a single Core API.

As you might notice, Magento is built mostly around abstraction and configuration (mostly XML), and the Magento API is no exception. We have a single core API and adapters for each of the different protocol types. This is incredibly flexible, and if we want to, we can implement our own adapter for another protocol.

The core Magento API gives us the ability to manage products, categories, attributes, orders, and invoices. This is done by exposing three of the core modules:

  • Mage_Catalog

  • Mage_Sales

  • Mage_Customer

The API supports three different types: SOAP, XML-RPC, and REST. Now, if you have done web development outside Magento and with other APIs, it is most likely that those APIs have been RESTful APIs.

Before we...