Just tried to install TYPO3 Surf at a TYPO3 CMS 7.6.10 Installation, but it didn't work.
C:\xampp\htdocs\typo3_src-7.6.10>composer require typo3/surf=dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for typo3/surf dev-master -> satisfiable by typo3/surf[dev-master].
- typo3/surf dev-master requires symfony/console ^2.8|^3.0 -> satisfiable by symfony/console[2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, v2.8.0, v2.8.0-BETA1, v2.8.1, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9, v3.0.0, v3.0.0-BETA1, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.0-BETA1, v3.1.0-RC1, v3.1.1, v3.1.2, v3.1.3] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
Without actually using surf currently, check out the latest betas, as a phar file is now used. So you don't need any composer installation and you won't run into those troubles you have right now.
Check out https://github.com/TYPO3/Surf/releases
At the moment only works with TYPO3 CMS 8 and newer.
The TYPO3 CMS 7 uses a old version of symfony/console.
{
"repositories": [
{
"type": "composer",
"url": "https://composer.typo3.org/"
}
],
"name": "markussom/creativeworkspace",
"require": {
"typo3/cms": "8.3.1 as 7.6.10",
"typo3/cms-beuser": "^8.3",
"typo3/cms-fluid-styled-content": "^8.3",
"typo3/cms-filelist": "^8.3",
"typo3/cms-impexp": "^8.3",
"typo3/cms-lowlevel": "^8.3",
"typo3/cms-rsaauth": "^8.3",
"typo3/cms-rtehtmlarea": "^8.3",
"typo3/cms-filemetadata": "^8.3",
"typo3/cms-setup": "^8.3",
"typo3/cms-tstemplate": "^8.3",
"typo3/cms-viewpage": "^8.3",
"typo3-ter/news": "^5.0.0",
"typo3-ter/realurl": "^2.0.14",
"helhum/typo3-console": "^3.3.1"
},
"scripts": {
"package-states": [
"./vendor/bin/typo3cms install:generatepackagestates"
],
"folder-structure": [
"./vendor/bin/typo3cms install:fixfolderstructure"
],
"post-autoload-dump": [
"#package-states",
"#folder-structure"
]
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": "Web"
},
"helhum/typo3-console": {
"install-binary": false
}
}
"require-dev": {
"typo3/cms-belog": "^8.3",
"typo3/cms-info": "^8.3",
"typo3/cms-reports": "^8.3",
"typo3/cms-info-pagetsconfig": "^8.3",
"TYPO3/Surf": "dev-master"
},
"config": {
"optimize-autoloader": true
}
}
Just for the sake of keeping giving an alternative in more recent times since the question was asked, there are a number of people starting to move to Docker and the easiest way I know how to do that is for TYPO3 is with DDEV, which is open source. Currently the opensource version for DDEV Live is not available yet but we're using DDEV Local for all local development and live is supposed to be showing up soon or so they've said. There's also DDEV Live available directly from DRUD which would be a managed solution and it sound like it's pretty robust setup though I haven't personally used it yet.
https://www.drud.com/
https://www.youtube.com/watch?v=HZVMPoI9SIk
Related
I try to add
https://github.com/Superbalist/laravel-google-cloud-storage
to my Laravel 9 and got error :
$ composer require superbalist/laravel-google-cloud-storage
Using version ^2.2 for superbalist/laravel-google-cloud-storage
./composer.json has been updated
Running composer update superbalist/laravel-google-cloud-storage
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- superbalist/laravel-google-cloud-storage[2.2.0, ..., 2.2.1] require illuminate/support ^5.1|^5.2|^5.3 -> found illuminate/support[v5.1.1, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- superbalist/laravel-google-cloud-storage 2.2.2 requires illuminate/support ^5.1|^6.0 -> found illuminate/support[v5.1.1, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev] but these were not loaded, likely because it conflicts with another require.
- superbalist/laravel-google-cloud-storage 2.2.3 requires illuminate/support ^5.1|^6.0|^7.0 -> found illuminate/support[v5.1.1, ..., 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.
- superbalist/laravel-google-cloud-storage 2.2.4 requires illuminate/support ^5.1|^6.0|^7.0|^8.0 -> found illuminate/support[v5.1.1, ..., 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.
- Root composer.json requires superbalist/laravel-google-cloud-storage ^2.2 -> satisfiable by superbalist/laravel-google-cloud-storage[2.2.0, ..., 2.2.4].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require superbalist/laravel-google-cloud-storage:*" to figure out if any version is installable, or "composer require superbalist/laravel-google-cloud-storage:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I check my composer.json and see that it has no any illuminate/support ref :
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"bensampo/laravel-enum": "^5.3",
"beyondcode/laravel-websockets": "^1.13",
"guzzlehttp/guzzle": "^7.2",
"inertiajs/inertia-laravel": "^0.5.2",
"laravel/framework": "^9.11",
"laravel/jetstream": "^2.8",
"laravel/sanctum": "^2.14.1",
"laravel/telescope": "^4.9",
"laravel/tinker": "^2.7",
"sentry/sentry-laravel": "^2.12",
"spatie/laravel-medialibrary": "^10.0.0",
"spatie/laravel-permission": "^5.5",
"tightenco/ziggy": "^1.0"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"autoload": {
"files": [
"app/Library/helper.php"
],
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-update-cmd": [
"#php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
Can I install laravel-google-cloud-storageinto this project ?
Thanks!
illuminate/support is part of Laravel. To make package development easier (and allow smaller parts of the framework to be used without the full framework), individual parts of Laravel can be specified as dependencies with the names illuminate/....
This error is saying that the maximum supported version of Laravel for this package is 8.x, but you are using 9.x for your application.
You cannot install this package in your application unless it is updated to support Laravel 9.x. If you look at this PR which talks about adding 9.x support, you will see that there does not seem to be any plan to do that any time soon (if ever). Other users recommend switching to this alternative package instead.
I'm trying to upgrade from laravel 5.1 to 5.3. When attempting to run composer update, it's failing saying that I'm trying to install multiple versions of symfony/console. Part of the error is below
Can only install one of: symfony/console[v3.1.0-BETA1, v2.8.9].
- Can only install one of: symfony/console[v3.1.0-BETA1, 2.7.x-dev].
- laravel/framework v5.3.0-RC1 requires symfony/console 3.1.* -> satisfiable by symfony/console[3.1.x-dev, v3.1.0, v3.1.0-BETA1, v3.1.0-RC1, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9].
- Conclusion: don't install peridot-php/peridot 1.16.0|don't install symfony/console 3.1.x-dev
- Conclusion: don't install peridot-php/peridot 1.16.0|don't install symfony/console v3.1.10
peridot-php/peridot 1.16.0 requires symfony/console ~2.0 -> satisfiable by symfony/console[2.7.x-dev, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.x-dev
laravel 5.3 requires symfony/console 3.1.*, but peridot's require is "symfony/console": "^2|^3"
I may be misunderstanding something, but doesn't ^2|^3 mean 2.* or 3.* will satisfy the requirements?
My composer.json
{
"name": "project/name",
"description": "description",
"type": "project",
"require": {
"laravel/framework": "5.3.*",
"doctrine/orm": "2.5.*#dev",
"doctrine/collections": "1.2",
"laracasts/flash": "~1.3",
"symfony/yaml": "2.5.*#dev",
"phpoffice/phpexcel": "dev-develop",
"peridot-php/peridot": "1.16.0",
"respect/validation": "0.8.*#dev",
"filp/whoops": "1.*#dev",
"davejamesmiller/laravel-breadcrumbs": "3.0.*",
"facebook/webdriver": "1.0.1",
"katzgrau/klogger": "dev-master",
"laravel-doctrine/orm": "1.2.*",
"laravelcollective/html": "5.3.*",
"laravel-doctrine/extensions": "1.0.x-dev",
"rdlowrey/auryn": "dev-master",
"paragonie/random-lib": "^2.1#dev",
"consolibyte/quickbooks": "3.4.*",
"phpmailer/phpmailer": "dev-master",
"defuse/php-encryption": "dev-master",
"gedmo/doctrine-extensions": "2.4.1"
},
"require-dev": {
"peridot-php/peridot-jumpstart": "~1.0",
"peridot-php/peridot-prophecy-plugin": "~1.0",
"satooshi/php-coveralls": "~0.6.1",
"peridot-php/peridot-watcher-plugin": "~1.3",
"fzaninotto/faker": "1.5.*",
"symfony/dom-crawler": "~3.1",
"symfony/css-selector": "~3.1"
},
"autoload": {
"classmap": [
"database",
"src",
"tests/unit"
],
"psr-4": {
"App\\": "app/",
"OS\\":"src/"
}
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php -r \"copy('.env.example', '.env');\"",
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev"
}
Your error message suggests that peridot-php/peridot package v1.16 that you require only works with symfony/console in version ~2.0, which is equivalent to any 2.x version and thus incompatible with 3.x version of symfony/console which Laravel requires.
First version of peridot-php/peridot that supports symfony/console 3.x is 1.18.1, so you need to bump your dependency to that version to support Symfony Console 3.x properly.
I'm trying to initialize my symfony project via composer.
But I obtain the following error:
Problem 1
- Installation request for pugx/shortid-php 1.* -> satisfiable by pugx/shortid-php[1.0.x-dev].
- pugx/shortid-php 1.0.x-dev requires php ^7.1 -> your PHP version (5.4.45) does not satisfy that requirement.
Problem 2
- Installation request for pugx/shortid-doctrine 1.* -> satisfiable by pugx/shortid-doctrine[1.0.x-dev].
- pugx/shortid-doctrine 1.0.x-dev requires pugx/shortid-php ^0.5 -> satisfiable by pugx/shortid-php[v0.5.0] but these conflict with your requirements or minimum-stability.
Problem 3
- Installation request for pugx/shortid-doctrine-bundle 1.* -> satisfiable by pugx/shortid-doctrine-bundle[1.0.x-dev].
- pugx/shortid-doctrine-bundle 1.0.x-dev requires pugx/shortid-doctrine ^0.4 -> satisfiable by pugx/shortid-doctrine[v0.4.0] but these conflict with your requirements or minimum-stability.
I'm working with PHP 5.4
Below I show an excerpt of my composer.json:
{
...
"autoload": {
"psr-4": { "": "src/" }
},
"require": {
"php": "^5.4",
"symfony/symfony": "~2.7",
"doctrine/orm": "~2.5",
"doctrine/doctrine-bundle": "~1.4",
"twig/extensions": "~1.0",
"pugx/shortid-php": "1.*#dev",
"pugx/shortid-doctrine": "1.*#dev",
"pugx/shortid-doctrine-bundle": "1.*#dev",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/framework-extra-bundle": "~3.0",
"sensio/distribution-bundle": "~4.0",
"sensio/generator-bundle": "~2.3",
"jms/serializer": "0.16.0",
"justinrainbow/json-schema": "^5.2"
},
"require-dev": {
"beelab/test-bundle": "~1.0",
"doctrine/doctrine-fixtures-bundle": "2.2.*",
"incenteev/composer-parameter-handler": "~2.0",
"phpunit/phpunit": "4.*",
"fabpot/php-cs-fixer": "~1.5"
},
"config": {
"bin-dir": "bin"
},
...
}
How can I resolve these errors?
The error message says it all: pugx/shortid-php 1.0.x-dev requires php ^7.1
You will need to either upgrade your project to PHP 7.1 or replace the dependency with a version compatible with PHP 5.4.
I am having troubles updating Drupal from composer.
Running composer update gives med this error, that I need help to interpret:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- don't install drupal/core 8.6.3|remove drupal/drupal dev-master
- don't install drupal/core 8.6.x-dev|remove drupal/drupal dev-master
- don't install drupal/core 8.7.x-dev|remove drupal/drupal dev-master
- Installation request for drupal/drupal dev-master -> satisfiable by drupal/drupal[dev-master].
- Installation request for drupal/core ^8.6.3 -> satisfiable by drupal/core[8.6.3, 8.6.x-dev, 8.7.x-dev].
My composer.json file looks like this:
{
"name": "drupal/drupal",
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"type": "project",
"license": "GPL-2.0-or-later",
"require": {
"composer/installers": "^1.2",
"wikimedia/composer-merge-plugin": "^1.4",
"algolia/algoliasearch-client-php": "^1.14",
"drupal/raven": "^2.4",
"drupal/core": "^8.6.3"
},
"require-dev": {
"webflo/drupal-core-require-dev": "^8.6.0"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"preferred-install": "dist",
"autoloader-suffix": "Drupal8"
},
"extra": {
"_readme": [
"By default Drupal loads the autoloader from ./vendor/autoload.php.",
"To change the autoloader you can edit ./autoload.php.",
"This file specifies the packages.drupal.org repository.",
"You can read more about this composer repository at:",
"https://www.drupal.org/node/2718229"
],
"merge-plugin": {
"include": [
"core/composer.json"
],
"recurse": true,
"replace": false,
"merge-extra": false
},
"installer-paths": {
"core": ["type:drupal-core"],
"modules/contrib/{$name}": ["type:drupal-module"],
"profiles/contrib/{$name}": ["type:drupal-profile"],
"themes/contrib/{$name}": ["type:drupal-theme"],
"drush/contrib/{$name}": ["type:drupal-drush"],
"modules/custom/{$name}": ["type:drupal-custom-module"],
"themes/custom/{$name}": ["type:drupal-custom-theme"]
}
},
"autoload": {
"psr-4": {
"Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
}
},
"scripts": {
"pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
"post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
"post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
"post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
"drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
"drupal-phpunit-upgrade": "#composer update phpunit/phpunit --with-dependencies --no-progress",
"phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
"phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
]
}
This is compatibility issue with PHP & composer version.I have changed version PHP 7.1 with composer 1.7.2 to execute it.
If your installed composer version above 1.7.2 then use below command to downgrade :
composer self-update 1.7.2
I'm trying to install telegram-bot/api on Centos7/PHP5.6, I'm getting this error when running "php composer.phar require telegram-bot/api"
# php composer.phar require telegram-bot/api
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^2.3 for telegram-bot/api
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: telegram-bot/api[v2.3.0, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.1, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.10, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.11, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.12, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.13, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.2, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.3, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.4, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.5, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.6, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.7, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.8, 1.0.x-dev].
- Can only install one of: telegram-bot/api[v2.3.9, 1.0.x-dev].
- Installation request for telegram-bot/api 1.0.x-dev -> satisfiable by telegram-bot/api[1.0.x-dev].
- Installation request for telegram-bot/api ^2.3 -> satisfiable by telegram-bot/api[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.2, v2.3.3, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9].
Installation failed, reverting ./composer.json to its original content.
Edit: As olibiaz suggested, I'm adding composer.json, which I've downloaded using this repo https://github.com/TelegramBot/Api:
{
"name": "telegram-bot/api",
"description": "PHP Wrapper for Telegram Bot API",
"keywords": [
"php",
"telegram",
"bot",
"bot api"
],
"homepage": "https://github.com/TelegramBot/Api",
"license": "MIT",
"authors": [
{
"name": "Ilya Gusev",
"email": "mail#igusev.ru",
"homepage": "https://php-cat.com",
"role": "Developer"
}
],
"require": {
"php" : ">=5.5.0"
},
"require-dev": {
"phpunit/phpunit" : "~4.0",
"squizlabs/php_codesniffer": "2.*",
"codeception/codeception": "*"
},
"autoload": {
"psr-4": {
"TelegramBot\\Api\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"TelegramBot\\Api\\Test\\": "tests"
}
},
"scripts": {
"test": "phpunit"
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
}
}
I've tried specifying the version of telegram-bot/api to use v2.3.9 but I still receive the same error: - Can only install one of: telegram-bot/api[v2.3.9, 1.0.x-dev].
I don't know what else I'm missing, I've already spent a lot of time looking for how to troubleshoot
I fixed it changing the name in composer.json to something like:
"name": "telegram-bot/api_project",