Composer is the tool for managing PHP dependencies. Currently, all frames or CMS, like Laravel, use a composer to manage their dependence. Magento 2 also employs a dependency management composer at the same time. It is used to control and manage the Magento components. Composer allows us to declare the libraries and to control the installation/update.
There are two commands of Composer:
- Composer installs - When we install any project, it will be run for the first time. All dependencies are retrieved by executing this command.
- Composer update - t will verify that the composer.lock file is being updated. The lock file includes the information that was previously placed.
Composer advantages
- We can utilise the third party library without embedding the library with source code.
- Fixes extension conflicts and compatibility difficulties with comprehensive dependence management through component-based architecture.
- Repack the other components of the Magento Open Source.
Install & Configure
XAMPP Installation
XAMPP is a cross-platform software, open-source programme. The term "X" (Cross-Plateform), "A" (Apache), "P" (MySQL), "P" (Perl). The complete program of XAMPP consists of the Apache web server, MySQL, PHP and Perl database. So all of these don't have to be individually installed. Generally, it is a local or host server.