Composer is an application-level dependency manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries.

Composer runs from the command line and installs dependencies (e.g. libraries) for an application. It also allows users to install PHP applications that are available on “Packagist” which is its main repository containing available packages. It also provides autoload capabilities for libraries that specify autoload information to ease usage of third-party code.

Composer is not a package manager in the same sense as Yum or Apt are. It manages them on a per-project basis, installing them in a directory inside the project. By default, it does not install anything globally. Thus, it is a dependency manager. It can support a “global” project for convenience via the global command.

Composer in Magento

Composer enables you to manage Magento components and their dependencies, providing you with the following advantages over a ZIP install:

  • Enables you to reuse third-party libraries without bundling them with source code
  • Component-based architecture with robust dependency management
  • Semantic versioning
  • Supports the PHP Framework Interoperability standard

Hello, I'm Keith, a website developer in Belfast, Northern Ireland working with PHP, Magento, Shopify and WordPress.

I've been building websites for over 10 years, from custom website development to bespoke web applications, Shopify and Magento ecommerce and Online Leaning Environments. I've worked on a range of projects and am always looking out for the next interesting project.

Related Notes Posts

Redirects

Apache, Nginx, PHP, JavaScript and Meta redirects There are two main redirect options **301** for a permanent redirect. Use this when the redirect is pointing... October 2022 · Notes

Spam Investigation Toolkit

Tools to help identify and engage spammers. I'm often asked what tools are best to use to identify spammers, there are plenty of free tools... October 2022 · Notes · Spam

Lighthouse and Google Fonts

I recently had performance issues on Google Lighthouse due to the fonts used on the website. The Google Fonts I used were classified as a... July 2022 · Notes

More Notes Posts...