I'm trying to install willvincent/laravel-rateable package on laravel 8 but it requires:
illuminate/support ^6.0|^7.0
How do I solve this issue in order to use the rateable package?
- willvincent/laravel-rateable[2.2.0, ..., 2.2.1] require illuminate/support ^6.0|^7.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but it conflicts with another require.
- Root composer.json requires willvincent/laravel-rateable ^2.2 -> satisfiable by willvincent/laravel-rateable[2.2.0, 2.2.1].
Have a look at https://packagist.org/packages/willvincent/laravel-rateable: this package is not compatibel with Laravel 8. There's already an issue posted at https://github.com/willvincent/laravel-rateable/issues/50, and a pull request at https://github.com/willvincent/laravel-rateable/pull/49/files.
You need to wait until the maintainer makes the package compatible - but through testing the pull request in your own application, you could provide feedback to the maintainer. That could speed up the process
Related
After running my command in the CLI I want to save the results in a file on my machine. I saw a couple of solutions and all of them require this -
composer require maatwebsite/excel
But upon running the command I am given this error...
Your requirements could not be resolved to an installable set of packages.
Problem 1
- maatwebsite/excel[3.1.0, ..., 3.1.25] require php ^7.0 -> your php version (8.1.2) does not satisfy that requirement.
- maatwebsite/excel[3.1.26, ..., 3.1.35] require illuminate/support 5.8.*|^6.0|^7.0|^8.0 -> found illuminate/support[v5.8.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
- phpoffice/phpspreadsheet[1.18.0, ..., 1.25.2] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
- maatwebsite/excel[3.1.41, ..., 3.1.x-dev] require psr/simple-cache ^1.0|^2.0 -> found psr/simple-cache[1.0.0, 1.0.1, 2.0.0, 2.x-dev] but the package is fixed to 3.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- maatwebsite/excel[3.1.36, ..., 3.1.40] require phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.18.0, ..., 1.25.2].
- Root composer.json requires maatwebsite/excel ^3.1 -> satisfiable by maatwebsite/excel[3.1.0, ..., 3.1.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/8.1/cli/php.ini
- /etc/php/8.1/cli/conf.d/10-mysqlnd.ini
- /etc/php/8.1/cli/conf.d/10-opcache.ini
- /etc/php/8.1/cli/conf.d/10-pdo.ini
- /etc/php/8.1/cli/conf.d/15-xml.ini
- /etc/php/8.1/cli/conf.d/20-calendar.ini
- /etc/php/8.1/cli/conf.d/20-ctype.ini
- /etc/php/8.1/cli/conf.d/20-curl.ini
- /etc/php/8.1/cli/conf.d/20-dom.ini
- /etc/php/8.1/cli/conf.d/20-exif.ini
- /etc/php/8.1/cli/conf.d/20-ffi.ini
- /etc/php/8.1/cli/conf.d/20-fileinfo.ini
- /etc/php/8.1/cli/conf.d/20-ftp.ini
- /etc/php/8.1/cli/conf.d/20-gettext.ini
- /etc/php/8.1/cli/conf.d/20-iconv.ini
- /etc/php/8.1/cli/conf.d/20-mysqli.ini
- /etc/php/8.1/cli/conf.d/20-pdo_mysql.ini
- /etc/php/8.1/cli/conf.d/20-phar.ini
- /etc/php/8.1/cli/conf.d/20-posix.ini
- /etc/php/8.1/cli/conf.d/20-readline.ini
- /etc/php/8.1/cli/conf.d/20-shmop.ini
- /etc/php/8.1/cli/conf.d/20-simplexml.ini
- /etc/php/8.1/cli/conf.d/20-sockets.ini
- /etc/php/8.1/cli/conf.d/20-sysvmsg.ini
- /etc/php/8.1/cli/conf.d/20-sysvsem.ini
- /etc/php/8.1/cli/conf.d/20-sysvshm.ini
- /etc/php/8.1/cli/conf.d/20-tokenizer.ini
- /etc/php/8.1/cli/conf.d/20-xmlreader.ini
- /etc/php/8.1/cli/conf.d/20-xmlwriter.ini
- /etc/php/8.1/cli/conf.d/20-xsl.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-gd` to temporarily ignore these required extensions.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require maatwebsite/excel:*" to figure out if any version is installable, or "composer require maatwebsite/excel:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Any other suggestions on how to export the files?
php artisan select:values --year=2020 --month=02 that's how I am running my command
Running this solved my problem
composer require psr/simple-cache:^1.0 maatwebsite/excel:3.1.44 --ignore-platform-req=ext-gd --ignore-platform-req=ext-zip
phpoffice/phpspreadsheet[1.18.0, ..., 1.25.2] require ext-gd *
By looking at the commandline error you need to enable this extention in your xampp or apache server configurations.
In case of Windows
just enable it in php.ini file like this
Now find extention:gd2
and remove the semi colon from start like this.
now simply restart the server and you are good to go.
Problem 1
- patronbase/omnipay-redsys[dev-master, v3.1.0] require omnipay/common dev-address3-support -> found omnipay/common[dev-feat-httpdecorator, dev-feat-customer, dev-feat/symfony5, dev-fix-gateway-params, dev-feat-amountinteger, dev-future, dev-master, dev-revert-67-sf3-compat, dev-revert-184-feat-parameters, dev-feat-php8, dev-feat-psr18, dev-test/php72, v2.0.0, ..., 2.5.x-dev, v3.0-alpha.1, ..., 3.1.x-dev (alias of dev-master)] but it does not match the constraint.
- patronbase/omnipay-redsys 3.1.x-dev is an alias of patronbase/omnipay-redsys dev-master and thus requires it to be installed too.
- Root composer.json requires patronbase/omnipay-redsys ^3.1 -> satisfiable by patronbase/omnipay-redsys[v3.1.0, 3.1.x-dev (alias of dev-master)].
https://packagist.org/packages/patronbase/omnipay-redsys
I have this problem installing patronbase/omnipay-redsys, can someone please help me? Thanks
That package requires a non-existing branch of omnipay/common, so you need to use an older version of that package (like: composer require omnipay/common 3.0.0). Also, such an error should be reported to the maintainers of the package
This question already has answers here:
Reference - Composer error "Your PHP version does not satisfy requirements" after upgrading PHP
(3 answers)
How to explain Composer's error log?
(2 answers)
Closed 1 year ago.
I Just Update My Composer Which Returns with some errors and issues:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jeremykenedy/laravel-roles v1.2.0 requires laravel/framework 5.3.*|5.4.*|5.5.*|5.6.* -> found
laravel/framework[v5.3.0-RC1, ..., 5.6.x-dev] but it conflicts with your root composer.json require
(^8.0).
- jeremykenedy/laravel-roles v1.3.0 requires laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.* -> found
laravel/framework[v5.3.0-RC1, ..., 5.7.x-dev] but it conflicts with your root composer.json require
(^8.0).
- jeremykenedy/laravel-roles[v1.4.0, ..., v1.7.0] require laravel/framework
5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.* -> found laravel/framework[v5.3.0-RC1, ..., 5.8.x-dev] but it
conflicts with your root composer.json require (^8.0).
- Root composer.json requires jeremykenedy/laravel-roles ^1.2 -> satisfiable by jeremykenedy/laravel-
roles[v1.2.0, ..., v1.7.0].
I Searched on google but failed to solve my issue. Plz, Provide me clear answer So I solve my error.
Thanks, Brother For the Help.
After execution of
composer install --ignore-platform-reqs
Following Errors Also Occur:
Class App\Http\Controllers\riderOrders located in L:/Live/cyber-food-
fiji/app\Http\Controllers\RiderOrders.php does not comply with psr-4
autoloading standard. Skipping.
Class "Grimzy\LaravelMysqlSpatial\SpatialServiceProvider" not found
Script #php artisan package: discover handling the post-autoload-dump
event returned with error code 1
After Execution of
composer update
Your requirements could not be resolved to an installable set of
packages.
Problem 1
- pusher/pusher-php-server[v3.2.0, ..., v3.3.1] require php ^5.4 || ^7.0 -> your php version (8.0.0) does not satisfy that requirement.
- pusher/pusher-php-server v3.4.0 requires php >=5.4 <7.3 -> your php version (8.0.0) does not satisfy that requirement.
- pusher/pusher-php-server v3.4.1 requires php >=5.4 <7.4 -> your php version (8.0.0) does not satisfy that requirement.
- Root composer.json requires pusher/pusher-php-server ^3.2 -> satisfiable by pusher/pusher-php-server[v3.2.0, ..., v3.4.1].
Thanks For Helping me with the last bug.
Plz Also guide in the above errors.
Thanks...
Run this command:
composer install --ignore-platform-reqs
or
composer update --ignore-platform-reqs
Note:
--ignore-platform-reqs: ignore all platform requirements (php, hhvm, lib-* and ext-) and force the installation even if the local machine does not fulfill these. See also the platform config option.
--ignore-platform-req: ignore a specific platform requirement(php, hhvm, lib- and ext-*) and force the installation even if the local machine does not fulfill it.
I am using Laravel 5.4.36 and I am trying to install Cashier using these steps: https://www.nicesnippets.com/blog/laravel-7-cashier-stripe-subscription-tutorial
However when I try to run this line:
sudo composer require laravel/cashier
I get this error:
Problem 1
- laravel/cashier[v12.6.0, ..., v12.6.1] require illuminate/contracts ^6.0|^7.0|^8.0 -> found illuminate/contra
cts[v6.0.0, ..., v6.20.7, v7.0.0, ..., v7.30.0, v8.0.0, ..., v8.19.0] but these were not loaded, likely because it
conflicts with another require.
- Root composer.json requires laravel/cashier ^12.6 -> satisfiable by laravel/cashier[v12.6.0, v12.6.1].
What am I doing wrong and how do I fix this?
Thanks,
When you do
composer require laravel/cashier
this will install the current version of the cashier package that works with the current version of Laravel. You have to check what version of cashier (if any), your current Laravel version installed, supports.
I have been receiving this error for quite sometime now. I have a laravel 4 application that I want to host in heroku. I have already created heroku application and now am trying to push my app to heroku using git push heroku master. The following are the results.
C:\xampp\htdocs\pos>git push heroku master
Fetching repository, done.
Counting objects: 83, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (59/59), done.
Writing objects: 100% (60/60), 342.76 KiB | 69.00 KiB/s, done.
Total 60 (delta 40), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> PHP app detected
Build dir is /tmp/build_5b1c5fb6-fa85-4a48-b2a8-127574aeb681
-----> Extracting Apache 2.4.7 PHP 5.5.9 build 2.0-rc1
-----> from http://vulcan-wlian.herokuapp.com/output/e33fbffa-c4ca-4752-8b1c-9ebc49366a1c
Creating Slug Identifier file with id: d325104734915692ee9e8f4189c08e21
Installing Composer binary
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /tmp/build_5b1c5fb6-fa85-4a48-b2a8-127574aeb681/bin/composer.phar
Use it: php bin/composer.phar
Installing Composer dependencies
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for barryvdh/laravel-migration-generator dev-master -> satisfiable by barryvdh/laravel-migration-generator[dev-master].
- barryvdh/laravel-migration-generator dev-master requires way/generators 1.x -> no matching package found.
Problem 2
- Installation request for zizaco/entrust dev-master -> satisfiable by zizaco/entrust[dev-master].
- zizaco/confide 2.0.0.b1 requires laravelbook/ardent 1.1.x -> satisfiable by laravelbook/ardent[v1.1.0].
- zizaco/confide 2.0.0a1 requires laravelbook/ardent 1.1.x -> satisfiable by laravelbook/ardent[v1.1.0].
- zizaco/confide 2.0.0b4 requires laravelbook/ardent 2.1.x -> satisfiable by laravelbook/ardent[v2.1.0].
- zizaco/confide 2.0.0b2 requires laravelbook/ardent 2.1.x -> satisfiable by laravelbook/ardent[v2.1.0].
- zizaco/confide 2.0.0b3 requires laravelbook/ardent 2.1.x -> satisfiable by laravelbook/ardent[v2.1.0].
- Can only install one of: laravelbook/ardent[v1.1.0, dev-master].
- Can only install one of: laravelbook/ardent[dev-master, v1.1.0].
- Can only install one of: laravelbook/ardent[v2.1.0, dev-master].
- Can only install one of: laravelbook/ardent[dev-master, v2.1.0].
- zizaco/entrust dev-master requires laravelbook/ardent dev-master -> satisfiable by laravelbook/ardent[dev-master].
- Conclusion: don't install laravelbook/ardent dev-master
- Installation request for zizaco/confide 2.0.x -> satisfiable by zizaco/confide[2.0.0.b1, 2.0.0a1, 2.0.0b2, 2.0.0b3, 2.0.0b4].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
! Push rejected, failed to compile PHP app
To git#heroku.com:ckpos.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:ckpos.git'
I have don't everything as required but with no success, any idea why?
Solved it. Simply switch back to the older buildpack.
Go to your app directory, where you do git push heroku master, and type:
heroku config:set BUILDPACK_URL=git://github.com/winglian/heroku-buildpack-php.git#mpm-event-php55-fpm
When I set the buildpack url to the master branch long ago, I had this funny feeling. I should have done this then. Anyways, a lesson learned.
Cheers!