Composer Install¶
Create new project¶
Configuration¶
The below options are required. You can see all options here.
Allow composer to apply patches to dependencies of magento-lts
Configure Magento core composer installer to use magento-lts as the Magento source package
Configure root directory that magento-lts will be installed to, such as pub
, htdocs
, or www
Specify PHP engine version¶
This is not strictly required, but if you are running composer with a different PHP version than your target environment, specifying the engine version will ensure that the correct dependencies are installed for your target environment, ignoring the PHP engine used to run composer.
Require magento-core-composer-installer
¶
Require magento-lts
¶
Optimization¶
When deploying to a production environment, it’s recommended to optimize Composer’s autoloader to speed up classes lookup time: