mongodb / mongo-php-driver

The Official MongoDB PHP driver
https://pecl.php.net/package/mongodb
Apache License 2.0
886 stars 201 forks source link

Cannot install with laravel 11 #1605

Closed vaporizel closed 1 month ago

vaporizel commented 3 months ago

$ composer require mongodb/mongodb resulting :

In PackageDiscoveryTrait.php line 312:

  Package mongodb/mongodb has requirements incompatible with your PHP version, PHP extensions and Composer version:  
    - mongodb/mongodb 1.19.1 requires ext-mongodb ^1.18.0 but it is not present. 

this is happen with fresh install laravel 11 with php 8.2

bisht2050 commented 3 months ago

Did you install MongoDB extension? Please follow the steps outlined in the docs - https://www.mongodb.com/docs/drivers/php/laravel-mongodb/current/quick-start/download-and-install/#install-the-mongodb-php-extension

jmikola commented 1 month ago

Closing this, as there's been no recent discussion.

In any event, a bug report is not appropriate for this kind of issue. Please utilize the community forums (also linked from the "New Issue" GitHub form) or consult our existing installation docs for the extension.