Chapter 3. Programming Concepts and Conventions

With years of experience, the Magento platform grew up to implement a lot of industry concepts, standards, and conventions. Throughout this chapter, we will look into several of these independent sections that stand out in day-to-day interactions with Magento development.

We will go through the following sections in this chapter:

  • Composer
  • Service contracts
  • Code generation
  • The var directory
  • Coding standards

Composer

Composer is a tool that handles dependency management in PHP. It is not a package manager like Yum and Apt on Linux systems are. Though it deals with libraries (packages), it does so on a per-project level. It does not install anything globally. Composer is a multiplatform tool. Therefore, it ...

Get Magento 2 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.