I'd like to install reliese/laravel
(https://github.com/reliese/laravel/) package into my Laravel 6+ project. reliese/laravel
requires "illuminate/support": "~5.1",
but my version is now 6+. I've looked thru the reliese/laravel
package, and it should still work with 6+. How can I force composer to install this package? I've tried --ignore-platform-reqs
and that did not work.
From the composer docs on require
php
, hhvm
, lib-*
and ext-*
requirements and force the installation even if the local machine does not fulfill these. See also the platform config option.So the flag only ignores machine-specific requirements and not package version mismatch.
I would recommend forking the package on GitHub, manually change the version requirement like so
{
"require": {
"php": ">=5.6.4",
"doctrine/dbal": "~2.5",
"illuminate/support": "~6.0",
"illuminate/database": "~6.0",
"illuminate/contracts": "~6.0",
"illuminate/filesystem": "~6.0",
"illuminate/console": "~6.0"
}
}
and instruct Composer to pull the package from the fork in your composer.json
"require": {
"reliese/laravel": "master",
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/juventus18/laravel"
}
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With