mongo-php-driver icon indicating copy to clipboard operation
mongo-php-driver copied to clipboard

Cannot install with laravel 11

Open vaporizel opened this issue 1 year ago • 1 comments

$ 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

vaporizel avatar Jul 05 '24 10:07 vaporizel

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

bisht2050 avatar Jul 05 '24 10:07 bisht2050

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.

jmikola avatar Aug 28 '24 18:08 jmikola