Book Image

Magento Extensions Development

By : Jérémie Bouchet
Book Image

Magento Extensions Development

By: Jérémie Bouchet

Overview of this book

Magento has been revealed as the best and the most popular open source e-commerce platform in the world, with about 250k+ online stores. Magento 2 is the most recent version of this awesome toolset: every new and modern development techniques are used to offer a real modular approach and powerful architecture. The book will support you in the writing of innovative and complex extensions. Starting from the beginning, we will cover how to set up a development environment that allows you to be really efficient in your functionality writing, including GIT registering and many other development tools. We then move on to provide a large overview of the best practices to scale your module in a high-load environment. After these foundations, you will see how to use test driven-development (TDD) and unit tests to handle your code. We then build a complex extension together, step by step, and internationally-ready. Next, you will find out how to protect the users’ data. Finally, we will take a look a publishing the extension on the new Magento Connect marketplace and how to protect your intellectual property. After you read this book, you will know everything you need to know to become an invaluable extension editor, whether it is for your customers’ needs or for your own requirements.
Table of Contents (16 chapters)
Magento Extensions Development
About the Author
About the Reviewer

Software considerations

Keep in mind that a lot of your clients don't upgrade their system (for many reasons). I'm not telling you to not be always up to date with software versions, but learn to switch between different development environments that run different versions of PHP, Apache, Memcached, and so on.


Magento 2 has natively supported PHP 7 since the first release. We all agree that PHP 7 performs better; it is faster and contains a lot of new functionalities. In this case, it is logical to run the Magento extension project on PHP 7. Nevertheless, you may have some other projects that don't need this new version, or worse: they can't work with it.

We will see how to compile and run PHP 7 for the specific vhost of your server. I will assume that your server is Debian-based, that you are the root user, and you use nginx, which has already been installed and configured.

Installing PHP

Here's how you go about it:

  1. First, install some useful packages, which we will need later:

    apt-get install...