Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eggplantSword's avatar

PHP extension ext-mysql_xdevapi is missing, can't install either

I'm trying to run an old project on my computer and get this missing extension error when trying to install composer, I'm trying to follow the instalation page but when I run pecl mysql_xdevapi I get some other errors as well.

Notice: Trying to access array offset on value of type bool in PEAR\REST.php on line 186
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Could not download from "https://pecl.php.net/get/mysql_xdevapi-8.0.23.tgz", cannot download "pecl/mysql_xdevapi" (Connection to `pecl.php.net:443' failed: Unable to find the socket tr
ansport "ssl" - did you forget to enable it when you configured PHP?)
Error: cannot download "pecl/mysql_xdevapi"
Download failed
install failed

This projects composer require in case it's important

    "require": {
        "php": "^7.1.3",
        "ext-mysql_xdevapi": "*",
        "barryvdh/laravel-dompdf": "^0.8.4",
        "fideloper/proxy": "^4.0",
        "inertiajs/inertia-laravel": "dev-master",
        "laravel/framework": "5.8.*",
        "laravel/tinker": "^1.0",
        "maatwebsite/excel": "^3.1"
    },

I use Windows and Xampp. I have other projects that work without any issues, I'm not sure what to do to fix this.

0 likes
2 replies
jlrdw's avatar

Have you looked up that extension online, and see if they have updated instructions.

eggplantSword's avatar

I ended up doing composer install --ignore-platform-reqs and that got it working. All the instructions I found were for linux so that wasn't really helpful.

Please or to participate in this conversation.