How to add the php extensions to your project.
If you see one of these errors in your project this is a right article to fix them.
ext-curl is missing in composer.json
ext-json is missing in composer.json
ext-simplexml is missing in composer.json
ext-libxml is missing in composer.json
The extensions are the libs of code with specific functionality. The list of the available extensions: http://php.net/manual/en/extensions.php
PhpStorm 2018.2 EAP 182.3458.35 : Extension is missing in composer.json
JetBrains continue improving Composer support, and this time they’ve added a new inspection — Extension is missing in composer.json. The inspection detects the usages of functions, constants, and classes from PHP extensions that are not listed in composer.json.
To fix that we need to update our composer.json require part. Add all extensions you need there
PhpStorm 2018.2 EAP 182.3458.35
The new PhpStorm 2018.2 EAP build (182.3458.35) is now available! You can download it or via JetBrains Toolbox App. Or…
AWS supports php extensions in the composer
The requested php extension is missing from your system
In the case of AWS you could see this error message in the terminal/logs.
In version 3.34.0, the AWS SDK for PHP is updated to correctly communicate its dependencies on PHP extensions through Composer.
That means that AWS will add all the additional extensions for you in the moment of deployment.
Updated Composer Dependencies for AWS SDK for PHP Version 3 | Amazon Web Services
In version 3.34.0, the AWS SDK for PHP is updated to correctly communicate its dependencies on PHP extensions through…
GCP supports php extensions in the composer
Same for GCP. Now it supports the extension in the composer.
You can find the list of all supported libs by clicking on the link below.
The PHP Runtime | App Engine flexible environment for PHP docs | Google Cloud
By default, the PHP runtime uses PHP 7.2, but you should explicitly declare your PHP version in the composer.json file…
Thank you for your attention
Thank you for your attention. If you have any question or advice please feel free to contact me. I‘ll be glad to help you.