Fix Composer memory leak issues

if you are always faced with errors such as “Composer require runs out of memory. PHP Fatal error: Allowed memory size of xxxxxxxx bytes exhausted” everytime you run a composer command and you have no access to php.ini or you can’t locate your composer.phar so you can change memory limit settings, here is a little code that you can execute in the command line and the error will be gone and fixed, and you can continue to¬† run Composer commands as normal.