I try to add package to starter-kit:
composer require akiraz2/Yii2-ticket-support "dev-master"
Starter-kit:
https://github.com/yii2-starter-kit/yii2-starter-kit
Package:
https://github.com/yii2-starter-kit/yii2-starter-kit
Composer.json in my project:
"require": {
"php": ">=7.1.0",
"ext-intl": "*",
"yiisoft/yii2": "^2.0.13",
"yiisoft/yii2-swiftmailer": "^2.0.0",
"yiisoft/yii2-authclient": "^2.0.0",
"yiisoft/yii2-bootstrap4": "^2.0",
"yiisoft/yii2-jui": "^2.0.0",
"yii2-starter-kit/yii2-file-kit": "^2.1.0",
"asofter/yii2-imperavi-redactor": ">=0.0.3#dev",
"trntv/yii2-aceeditor": "^2.0",
"trntv/probe": "^1.0",
"trntv/yii2-glide": "^1.2",
"trntv/yii2-datetime-widget": "dev-master#dev",
"trntv/cheatsheet": "^0.1#dev",
"trntv/yii2-command-bus": "^3.0",
"intervention/image": "^2.1",
"vlucas/phpdotenv": "^2.0",
"almasaeed2010/adminlte": "^3.0",
"npm-asset/font-awesome": "^5.0",
"npm-asset/html5shiv": "^3.0",
"npm-asset/jquery-slimscroll": "^1.3",
"npm-asset/flot": "^3.2",
"symfony/process": "^4.0",
"guzzlehttp/guzzle": "^6.0",
"alexantr/yii2-elfinder": "^1.3",
"trntv/sitemaped": "^0.1",
"yii2mod/yii2-swagger": "^1.1",
"kartik-v/yii2-widgets": "^3.4",
"akiraz2/yii2-ticket-support": "dev-master",
"rmrevin/yii2-fontawesome": "^3.4"
},
"require-dev": {
"yiisoft/yii2-debug": "^2.0.0",
"yiisoft/yii2-gii": "^2.0.0",
"yiisoft/yii2-faker": "^2.0.0",
"codeception/codeception": "2.4.0",
"codeception/verify": "^0.3.1"
},
Composer.json in the package: akiraz2/yii2-ticket-support
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"yiisoft/yii2": "~2.0",
"hashids/hashids": "^2.0",
"yiidoc/yii2-redactor": "*",
"php-imap/php-imap": "^3.0",
"yiisoft/yii2-queue": "~2.0"
},
Error:
Problem 1
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for akiraz2/yii2-ticket-support dev-master -> satisfiable by akiraz2/yii2-ticket-support[dev-master].
Just read the error message: it tells you that akiraz2/yii2-ticket-support requires rmrevin/yii2-fontawesome with the version constraint ~2.17, while your own application requires that same package with ^3.4
Related
This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 1 year ago.
I am having troubles upgrading my Symfony project from 4.4. to 5.0. I already removed all depreciations and so forth and am now trying to upgrade via composer.
When I run composer update "symfony/*" I get the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove stof/doctrine-extensions-bundle v1.6.0
- Conclusion: don't install stof/doctrine-extensions-bundle v1.6.0
- Conclusion: don't install symfony/console v5.0.11
- Conclusion: don't install symfony/console v5.0.10
- Conclusion: don't install symfony/console v5.0.9
- Conclusion: don't install symfony/console v5.0.8
- Conclusion: don't install symfony/console v5.0.7
- Conclusion: don't install symfony/console v5.0.6
- Conclusion: don't install symfony/console v5.0.5
- Conclusion: don't install symfony/console v5.0.4
- Conclusion: don't install symfony/console v5.0.3
- Conclusion: don't install symfony/console v5.0.2
- Installation request for stof/doctrine-extensions-bundle (locked at v1.6.0, required as ^1.3) -> satisfiable by stof/doctrine-extensions-bundle[v1.6.0].
- Conclusion: don't install symfony/console v5.0.1
- stof/doctrine-extensions-bundle v1.6.0 requires symfony/http-kernel ^4.4 || ^5.2 -> satisfiable by symfony/http-kernel[v4.4.21].
- symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
- symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
- Installation request for symfony/console 5.0.* -> satisfiable by symfony/console[v5.0.0, v5.0.1, v5.0.10, v5.0.11, v5.0.2, v5.0.3, v5.0.4, v5.0.5, v5.0.6, v5.0.7, v5.0.8, v5.0.9].
It looks like there is a problem with symfony/console and symfony/http-kernel. When I checked stof/doctrine-extensions-bundle on packagist I coudn't find any restrictions on symfony/console. For symfony/http-kernel it looks like at least 5.2 is required, however, I don't want to upgrade directly to Symfony 5.2, or is that the only way I can solve this? Does anyone see / know where this problem is coming from and can point me in the right direction?
Here is my composer.json:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-curl": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-json": "*",
"ext-openssl": "*",
"ext-zlib": "*",
"babdev/pagerfanta-bundle": "^2.10",
"dompdf/dompdf": "^0.8.3",
"endroid/qrcode-bundle": "^3.4",
"friendsofsymfony/ckeditor-bundle": "^2.1",
"league/csv": "^8.0",
"mobiledetect/mobiledetectlib": "^2.8",
"sensio/framework-extra-bundle": "^5.4",
"stof/doctrine-extensions-bundle": "^1.3",
"swiftmailer/swiftmailer": "^6.0",
"symfony/apache-pack": "^1.0",
"symfony/asset": "5.0.*",
"symfony/console": "5.0.*",
"symfony/dotenv": "5.0.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.0.*",
"symfony/framework-bundle": "5.0.*",
"symfony/intl": "5.0.*",
"symfony/maker-bundle": "^1.13",
"symfony/monolog-bundle": "^3.5",
"symfony/orm-pack": "^1.0",
"symfony/security-bundle": "5.0.*",
"symfony/serializer": "5.0.*",
"symfony/serializer-pack": "^1.0",
"symfony/swiftmailer-bundle": "^3.4",
"symfony/twig-bundle": "5.0.*",
"symfony/yaml": "5.0.*"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.2",
"symfony/phpunit-bridge": "^5.2",
"symfony/profiler-pack": "^1.0"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"#auto-scripts"
],
"post-update-cmd": [
"#auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.0.*"
}
}
}
stof/doctrine-extensions-bundle v1.6.0 requires symfony/http-kernel ^4.4 || ^5.2 looks pretty clear to me: that package in that given version is not compatible with Symfony 5.0
Either downgrade stof/doctrine-extensions-bundle to v1.5 (which is compatible with Symfony 5.0), or (the better solution) update Symfony to v5.2 - the Support for 5.0 has ended in July 2020
This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 2 years ago.
I have the app in Laravel 5.6 and need to cache some models. I found only one package that can provide this (genealabs/laravel-model-caching), but it requires package illuminate/cache 8.0.* that is in conflict with some another require:
Problem 1
Root composer.json requires genealabs/laravel-model-caching ^0.11.1 -> satisfiable by genealabs/laravel-model-caching[0.11.1].
genealabs/laravel-model-caching 0.11.1 requires illuminate/cache ^8.0 -> found illuminate/cache[v8.0.0, ..., 8.x-dev] but it conflicts with another require.
Is there a way how to find out which package is it in a conflict with?
My composer.json requires are:
"require": {
"php": "^7.1.3",
"ext-curl": "*",
"ext-intl": "*",
"ext-json": "*",
"anouar/paypalpayment": ">=3.0",
"barryvdh/laravel-dompdf": "^0.8.6",
"barryvdh/laravel-ide-helper": "^2.5",
"bugsnag/bugsnag-laravel": "^2.0",
"fideloper/proxy": "^4.0",
"gloudemans/shoppingcart": "^2.5",
"guzzlehttp/psr7": "^1.6",
"hazestudio/laravel-gopay-sdk": "^0.1.5",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0",
"predis/predis": "^1.1",
"tcg/voyager": "^1.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.4",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
}
Thanks a lot in advance for any help.
I think there is package version issue. You need to find genealabs/laravel-model-caching version which is support with laravel 5.6.*
I am new to Symfony, I tried to install symfony/maker-bundle, but it gives me the following error:
Using version ^1.22 for symfony/maker-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.4.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- ocramius/proxy-manager 2.9.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
- ocramius/proxy-manager 2.9.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
- ocramius/proxy-manager 2.9.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
- Installation request for ocramius/proxy-manager (locked at 2.9.0) -> satisfiable by
ocramius/proxy-manager[2.9.0].
I searched for similar problems, and often they change a package version in composer.json as the solution, but I can't find neither ocramius/proxy-manager nor composer-runtime-api in it:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-simplexml": "*",
"bluetel-solutions/twig-truncate-extension": "^0.1.3",
"friendsofsymfony/rest-bundle": "^2.7",
"jms/serializer-bundle": "^3.5",
"liip/imagine-bundle": "^2.2",
"sensio/framework-extra-bundle": "^5.4",
"symfony/apache-pack": "^1.0",
"symfony/asset": "4.4.*",
"symfony/console": "4.4.*",
"symfony/dotenv": "4.4.*",
"symfony/flex": "^1.3",
"symfony/form": "4.4.*",
"symfony/framework-bundle": "4.4.*",
"symfony/mailer": "4.4.*",
"symfony/monolog-bundle": "^3.4",
"symfony/orm-pack": "^1.0",
"symfony/security-bundle": "4.4.*",
"symfony/security-csrf": "4.4.*",
"symfony/serializer": "4.4.*",
"symfony/swiftmailer-bundle": "^3.4",
"symfony/translation": "4.4.*",
"symfony/twig-bundle": "4.4.*",
"symfony/validator": "4.4.*",
"symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "4.4.*",
"twig/extensions": "^1.5",
"vich/uploader-bundle": "^1.12",
"whatwedo/core-bundle": "dev-symfony5",
"whatwedo/search-bundle": "dev-symfony5"
},
"require-dev": {
"symfony/maker-bundle": "^1.12",
"symfony/web-server-bundle": "4.4.*"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"#auto-scripts"
],
"post-update-cmd": [
"#auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.4.*"
}
}
May be I need an other version of symfony/maker-bundle?
Ocramius is well known for his harsh stance in maintaining backward compatibility.
On this case, release 2.9.0 says:
This release upgrades ocramius/proxy-manager to use composer-runtime-api:^2: this
means that you will need composer:^2 to install this version of ProxyManager.
In order to upgrade to composer v2, you can run composer self-update --2 on your
development or CI/CD system.
So your options are:
either upgrade composer to version 2 (composer self-update --2), which is really the recommended way to go unless you have some specific composer plugin that you really need and hasn't been updated to account for the new release.
Find which package you are installing is the one that requires the proxy-manager (composer why ocramius/proxy-manager), and see if you can adjust your version constraints on that package so that it depends on an older (< 2.9) version of ocramius/proxy-manager. (I mention this option only for completeness sake, but upgrading composer is really the way to go).
I am new to Symfony, I tried to install symfony/maker-bundle, but it gives me the following error:
Using version ^1.22 for symfony/maker-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.4.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- ocramius/proxy-manager 2.9.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
- ocramius/proxy-manager 2.9.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
- ocramius/proxy-manager 2.9.0 requires composer-runtime-api ^2.0.0 -> no matching package found.
- Installation request for ocramius/proxy-manager (locked at 2.9.0) -> satisfiable by
ocramius/proxy-manager[2.9.0].
I searched for similar problems, and often they change a package version in composer.json as the solution, but I can't find neither ocramius/proxy-manager nor composer-runtime-api in it:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-simplexml": "*",
"bluetel-solutions/twig-truncate-extension": "^0.1.3",
"friendsofsymfony/rest-bundle": "^2.7",
"jms/serializer-bundle": "^3.5",
"liip/imagine-bundle": "^2.2",
"sensio/framework-extra-bundle": "^5.4",
"symfony/apache-pack": "^1.0",
"symfony/asset": "4.4.*",
"symfony/console": "4.4.*",
"symfony/dotenv": "4.4.*",
"symfony/flex": "^1.3",
"symfony/form": "4.4.*",
"symfony/framework-bundle": "4.4.*",
"symfony/mailer": "4.4.*",
"symfony/monolog-bundle": "^3.4",
"symfony/orm-pack": "^1.0",
"symfony/security-bundle": "4.4.*",
"symfony/security-csrf": "4.4.*",
"symfony/serializer": "4.4.*",
"symfony/swiftmailer-bundle": "^3.4",
"symfony/translation": "4.4.*",
"symfony/twig-bundle": "4.4.*",
"symfony/validator": "4.4.*",
"symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "4.4.*",
"twig/extensions": "^1.5",
"vich/uploader-bundle": "^1.12",
"whatwedo/core-bundle": "dev-symfony5",
"whatwedo/search-bundle": "dev-symfony5"
},
"require-dev": {
"symfony/maker-bundle": "^1.12",
"symfony/web-server-bundle": "4.4.*"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"#auto-scripts"
],
"post-update-cmd": [
"#auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.4.*"
}
}
May be I need an other version of symfony/maker-bundle?
Ocramius is well known for his harsh stance in maintaining backward compatibility.
On this case, release 2.9.0 says:
This release upgrades ocramius/proxy-manager to use composer-runtime-api:^2: this
means that you will need composer:^2 to install this version of ProxyManager.
In order to upgrade to composer v2, you can run composer self-update --2 on your
development or CI/CD system.
So your options are:
either upgrade composer to version 2 (composer self-update --2), which is really the recommended way to go unless you have some specific composer plugin that you really need and hasn't been updated to account for the new release.
Find which package you are installing is the one that requires the proxy-manager (composer why ocramius/proxy-manager), and see if you can adjust your version constraints on that package so that it depends on an older (< 2.9) version of ocramius/proxy-manager. (I mention this option only for completeness sake, but upgrading composer is really the way to go).
Hi everyone I'm trying to install media library in laravel 7.4 but it have bellow error:
Problem 1
- Installation request for symfony/console 5.0.1 -> satisfiable by symfony/console[v5.0.1].
- Installation request for spatie/laravel-medialibrary ^8.1 -> satisfiable by spatie/laravel-medialibrary[8.1.0].
- Can only install one of: symfony/process[v5.0.1, 4.4.x-dev].
- Can only install one of: symfony/process[4.4.x-dev, v5.0.1].
- Can only install one of: symfony/process[4.4.x-dev, v5.0.1].
- Conclusion: install symfony/process 4.4.x-dev
- Installation request for symfony/process 5.0.1 -> satisfiable by symfony/process[v5.0.1].
Whats wrong with this package, As here link explains the package I resolve requirements :
"require": {
"php": "^7.2.5",
"cyrildewit/eloquent-viewable": "^5.2",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"laravel/socialite": "^4.3",
"laravel/tinker": "^2.0",
"morilog/jalali": "^3.1",
"santigarcor/laratrust": "^5.2",
"symfony/console": "5.0.1",
"symfony/process": "5.0.1"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
The Medialibrary package requires exif extension . Enable this extension from the php.ini file.