Skip to main content


Composer paramters

The best way to check your files classes is to optimize the files using composer, here is a good command to do that


 php composer.phar update --no-dev --prefer-dist --no-interaction --optimize-autoloader --apcu-autoloader


Ignore PHP version using this command


Magento 2 Allowed Memory exhausted error when compile code

you need to increase the memory_limit in php.ini

and as a quick solution you can use these commands directly in the command line


php -dmemory_limit=5G bin/magento setup:di:compile


php -dmemory_limit=5G bin/magento setup:static-content:deploy



another code for the composer update

php -dmemory_limit=5G composer.phar update

php -d memory_limit=-1 /usr/local/bin/composer update