Add required PHP extensions to composer.json.