laravel install jenssegers/mongodb error ext-mongodb - laravel

guy i try to install mongodb in laravel, so i import mongdo.dll already, but still error.
Problem 1
- jenssegers/mongodb[v3.8.0, ..., 3.8.4] require mongodb/mongodb ^1.6 -> satisfiable by mongodb/mongodb[1.9.0].
- mongodb/mongodb 1.9.0 requires ext-mongodb ^1.10.0 -> it is missing from your system. Install or enable PHP's mongodb extension.
- Root composer.json requires jenssegers/mongodb ^3.8 -> satisfiable by jenssegers/mongodb[v3.8.0, ..., 3.8.4].
php extension install list.
php_mongo-1.6.9-5.6-ts-vc11-x64
php_mongodb-1.10.0-8.0-ts-vs16-x64
php.init file
[PHP_MONGO]
extension=php_mongo.dll
[PHP_HTTP]
extension=php_http.dll
[PHP_MONGODB]
extension=php_mongodb.dll

Guy my answer edit file composer.json
Add this line
"provide" : {
"ext-mongodb": "*"
},

Related

jenssegers/mongodb dependecies issues with Laravel Sail - ext-mongodb

I'm trying to setup MongoDB in a Laravel Jetstream + Sail.
What I'm doing is trying to install the following packages:
mongodb/mongodb
jenssegers/mongodb
but I get the following errors :
Problem 1
- jenssegers/mongodb[v3.8.0, ..., v3.8.2] require mongodb/mongodb ^1.6 -> satisfiable by mongodb/mongodb[1.6.0, ..., 1.9.x-dev (alias of dev-master)].
- mongodb/mongodb 1.9.x-dev is an alias of mongodb/mongodb dev-master and thus requires it to be installed too.
- mongodb/mongodb dev-master requires ext-mongodb ^1.10.0 -> it is missing from your system. Install or enable PHP's mongodb extension.
- mongodb/mongodb[1.6.0, ..., v1.6.x-dev] require php ^5.6 || ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
- mongodb/mongodb[1.7.0-beta1, ..., v1.7.x-dev] require php ^7.0 -> your php version (8.0.2) does not satisfy that requirement.
- mongodb/mongodb[1.8.0-RC1, ..., v1.8.x-dev] require ext-mongodb ^1.8.1 -> it is missing from your system. Install or enable PHP's mongodb extension.
- Root composer.json requires jenssegers/mongodb ^3.8 -> satisfiable by jenssegers/mongodb[v3.8.0, v3.8.1, v3.8.2].
like suggested in this: Why does composer complain about the ext-mongo extension?
I added to my composer.json the following
"provide" : {
"ext-mongo": "*"
},
But nothing changed, I also tried adding the package:
"soyuka/stubs-mongodb": "^1.0",
But same problems.
Thanks
Mauro
The solution was to publish Sail docker files and add:
php8.0-mongodb
in /docker/8.0/DockerFile
Building and running:
sail composer require jenssegers/mongodb

unable to install laravel dusk dashboard

i am trying to install dusk dashborad by this command:
composer require beyondcode/dusk-dashboard --dev
but unable to install
when tried to install, it gives the error for "guzzlehttp/guzzle" version.
Problem 1
- Root composer.json requires beyondcode/dusk-dashboard ^2.0 -> satisfiable by beyondcode/dusk-dashboard[2.0.0].
- beyondcode/dusk-dashboard 2.0.0 requires guzzlehttp/guzzle ^6.3 -> found guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (7.0).
Use the option --with-all-dependencies (-W) to allow upgrades,
downgrades and removals for packages currently locked to specific
versions.
tried downgrading to guzzlehttp/guzzle to ^6.3 but then it gives this error:
Problem 1
- Root composer.json requires beyondcode/dusk-dashboard ^2.0 -> satisfiable by beyondcode/dusk-dashboard[2.0.0].
- beyondcode/dusk-dashboard 2.0.0 requires illuminate/console 5.6.|5.7.|5.8.|6.|7.* -> found illuminate/console[v5.6.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
but after installing the correct version asked in the error which is ^6.3 ,it gives this error:
i also tried updating option --wtin-all-depandencies. but did not resolve.
I think the maintainer is not actively maintaining the package. The last commit was May 30, 2020, to make it compatible with Laravel 7.

Installing Laravel Backpack 4.1 into Laravel 8

I am trying to install Backpack 4.1 into Laravel 8. I ran
composer require backpack/crud:"4.1.*"
But I received the following error.
Your requirements could not be resolved to an installable set of
packages.
backpack/crud[4.1.22, ..., 4.1.x-dev] require doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0-BETA2, ..., 2.12.x-dev] but it conflicts
with your root composer.json require (^3.0).
backpack/crud[4.1.0, ..., 4.1.21] require laravel/framework ^7.0|^6.0 -> found laravel/framework[v6.0.0, ..., 6.x-dev, v7.0.0,
..., 7.x-dev] but it conflicts with your root composer.json require
(^8.12).
Root composer.json requires backpack/crud 4.1.* -> satisfiable by backpack/crud[4.1.0, ..., 4.1.x-dev].
I have been looking around but have not found a solution yet. Versions: Laravel 8.17, PHP 7.3.24
UPDATE I have tried installing 4.2; please see below.
Root composer.json requires backpack/crud 4.2.* -> satisfiable by
backpack/crud[4.2.x-dev]. backpack/crud 4.2.x-dev requires
doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0-BETA2, ...,
2.12.x-dev] but it conflicts with your root composer.json require (^3.0).
Pending answer removal.
It seems Backpack 4.1 now supports Laravel8

Bitpay with laravel

how can i use bitpay with Laravel , i found this 'https://packagist.org/packages/vrajroham/laravel-bitpay' but i have this problem on install :
Problem 1
- bitpay/sdk v3.0.1910 requires bitpay/key-utils ^1.0 -> satisfiable by bitpay/key-utils[v1.0.1908].
- bitpay/sdk v3.1.1910 requires bitpay/key-utils ^1.0 -> satisfiable by bitpay/key-utils[v1.0.1908].
- bitpay/sdk v3.2.1910 requires bitpay/key-utils ^1.0 -> satisfiable by bitpay/key-utils[v1.0.1908].
- bitpay/sdk v3.2.1911 requires bitpay/key-utils ^1.0 -> satisfiable by bitpay/key-utils[v1.0.1908].
- bitpay/key-utils v1.0.1908 requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
- Installation request for bitpay/sdk ~3.0 -> satisfiable by bitpay/sdk[v3.0.1910, v3.1.1910, v3.2.1910, v3.2.1911].
You can use this SDK provided by BitPay to make requests to their api: Bitpay SDK.
There you will find a very good documented guide that explains step by step how to install and use the SDK.
I will leave here the steps only to install the SDK.
BitPay SDK Installation
Install composer.
curl -sS https://getcomposer.org/installer | php
Install BitPay SDK using composer.
php composer.phar require bitpay/sdk:~3.0
Alternatively, you can install the SDK via composer by hand. Add the following to your composer.json file:
{
...
"require": {
...
"bitpay/sdk": "~3.0"
}
...
}
Once you have added this, just run: php composer.phar update bitpay/sdk
Final Note
After following these steps you will be able to generate a key required to make requests. More information here.

Composer error while installing Laravel: 'mbstring' is missing?

I've decided to try out Laravel and I've been going on and off with the installation because of how tedious it is in comparison to OOP PHP.
Nontheless I'm trying to execute the 'composer create-project laravel/laravel --prefer-dist' command on my cmd(.~/wamp/www/) and it created the Laravel folder but gives me this output:
*Installing laravel/laravel (v5.1.4)
- Installing laravel/laravel (v5.1.4)
Loading from cache
Created project in C:\wamp\www\laravel
> php -r "copy('.env.example', '.env');"
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.1.8 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.7 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.6 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.5 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.4 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.3 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.2 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.1 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- laravel/framework v5.1.0 requires ext-mbstring * -> the requested PHP exte
nsion mbstring is missing from your system.
- Installation request for laravel/framework 5.1.* -> satisfiable by laravel
/framework[v5.1.0, v5.1.1, v5.1.2, v5.1.3, v5.1.4, v5.1.5, v5.1.6, v5.1.7, v5.1.
8].
C:\wamp\www>*
I am using windows.
I have tried installing a fresh composer, I have tried copying a laravel directory and placing it in my /www manually.
I've made sure that WAMP is using all modules and extensions according to what I read.
I've edited the php.ini file and taken of the semi-colons where necessary.
And now after a bit of Google Searching, I am lost.
Could anybody help me with this problem please, I would appreciate it.
Thanks in advance!
Below is my PHP.ini file
So I couldn't paste the whole thing, but take a look at it here:
http://jpst.it/AAhW
I had the same problem. Here's the solution.
Go to your php.ini file.
Locate the extension "extension=php_mbstring.dll". (ctrl+f might not work, just locate the long list with extensions in php.ini)
Uncomment the extension, you do this by removing the semicolon in the same line.
Save your php.ini file.
This probably won't be the last time you'll encounter something like this. As a rule of thumb, read the error carefully and make the appropriate change to your php.ini file.
Good luck!
Installing php-mbstring using,
sudo apt-get install php-mbstring
should fix this.
There are couple of errors when i was trying to install on my linux machine :
laravel/framework v5.4.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
phpunit/phpunit 5.7.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
sudo apt-get install php-mbstring
sudo apt-get install php-dom
So in short all the error such such as
jenssegers/mongodb v3.2.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
jenssegers/mongodb v3.2.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
jenssegers/mongodb v3.2.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
mongodb/mongodb 1.1.2 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
you can simply run the following commands:
sudo apt-get install php-*
Thanks

Resources