Composer Memory Limit Reached

You got an error. A composer memory limit error.

PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>

You go to the documentation. It tells you to search through your PHP ini files and increase the memory limit. You realize that’s going to take a while depending on what env you’re using. You’d rather just copy and paste a command in the terminal. This command.


This will configure your current env. This will set the memory limit to unlimited for your current session.


Leave a Comment