I want to change color of my image. So I'm trying to use image/intervention of laravel. Followed their documentation: http://image.intervention.io/getting_started/installation https://packagist.org/packages/intervention/image
When i tried the following, i got an memory exhausted error:
1. composer require intervention/image
Error: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors. E:\xampp\htdocs\Myproject>php -r "echo ini_get('memory_limit').PHP_EOL;" 512M
So, i followed the below link and increased to memory_limit=-1 from memory_limit=512M https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors
Now, again tried this command composer require intervention/image. Now i got a different error:
Error: Your requirements could not be resolved to an installable set of packages.
Problem 1 - This package requires php ~7.2.0 but your PHP version (7.3.11) does not satisfy that requirement. Problem 2 - mpociot/vat-calculator dev-master requires ext-soap * -> the requested PHP extension soap is missing from your system. - mpociot/vat-calculator dev-master requires ext-soap * -> the requested PHP extension soap is missing from your system. - mpociot/vat-calculator dev-master requires ext-soap * -> the requested PHP extension soap is missing from your system. - Installation request for mpociot/vat-calculator dev-master -> satisfiable by mpociot/vat-calculator[dev-master].
To enable extensions, verify that they are enabled in your .ini files:
- E:\xampp\php\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
Why am i getting these errors? How can i install image/intervention package in my application? I'm using laravel 5.5 , PHP 7.3.11
As the error says, do i have to install 7.2.0 php version? Or is there any other solutions?
PHPinyourcomposer.json. Maybe you need to update it. The second problem is because you are missingsoapextension in PHP. Try to install it. This question/anwser could help you. - GrenierJ"php": "~7.2",in yourcomposer.json- GrenierJ^7.2to allow all versions of PHP upper than7.2. And runcomposer update php. - GrenierJcomposer depends --tree <dependecyName>you can see why this dependency is needed and maybe try to update parent dependeny. - GrenierJ