PHP Symfony 2 / Payum Bundle / Installing wiseape/sofort-ueberweisung - php

Im facing issues installing the wiseape/sofort-ueberweisung gateway for the payum bundle. I can see it's a version dependency issue on payum core but can't figure out how to solve it.
My installed payum core has version 1.1 and wiseape/sofort-ueberweisung only requires 0.12.0 so I'm lost here as it also tells me to not install a core version of 0.12.x-dev?
This is the package: https://github.com/wiseape/payum-sofortuberweisung
This is the command I run:
sudo php composer.phar require "wiseape/payum-sofortuberweisung"
This is the result:
Using version ^1.1 for wiseape/payum-sofortuberweisung
./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
- wiseape/payum-sofortuberweisung 1.x-dev requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.0 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.1 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.2 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.3 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.4 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.5 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- Conclusion: don't install payum/core 0.12.x-dev
- Installation request for wiseape/payum-sofortuberweisung ^1.1 -> satisfiable by wiseape/payum-sofortuberweisung[1.x-dev, v1.1.0, v1.1.1, v1.1.2, v1.1.3, v1.1.4, v1.1.5].
This is my composer.json
{
"minimum-stability": "dev",
"name": "ubuntu/api",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"files": [
"app/AppKernel.php"
]
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.*#dev",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0#dev",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"snc/redis-bundle": "1.1.8",
"predis/predis": "0.8.*",
"payum/payum-bundle": "*#stable",
"psliwa/pdf-bundle": "^1.0",
"tfox/mpdf-port-bundle": "^1.3",
"payum/offline": "*#stable",
"payum/paypal-express-checkout-nvp": "^1.1",
"phpunit/phpunit": "^5.1",
"payum/core": "^1.1",
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}

The short answer the library you want to use require pretty old payum core. There are four ways to go:
You can downgrade payum core version. In this case you can lost bug fixes, and feature improvements made in Payum.
Upgrade the library wiseape/sofort-ueberweisung up to 1.0 version. Upgrade notes may help you here a lot: https://github.com/Payum/Payum/blob/master/UPGRADE.md
There is an alternative extension https://github.com/invit/payum-sofortueberweisung which works in production, though it requrie payum version 0.15. Should be easier to upgrade from it to 1.0.
Also I started adding the sofort extension right into payum https://github.com/Payum/Payum/pull/447. The PR based on init's work. There are some things to finish up and test. Unfortunately I dont give you any ETA.

Related

Installation failed when trying to upgrade to a major version of Symfony

I've an old Symfony project and here is composer.json:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": {"": "src/"}
},
"require": {
"php": ">=5.5.9",
"symfony/symfony": "*",
"symfony/console": ">=2.2.3",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"facebook/php-sdk-v4" : "4.0.*",
"symfony/finder": "^3.1",
"sonata-project/core-bundle": "^3.1",
"sonata-project/seo-bundle": "^2.0",
"sonata-project/admin-bundle": "^3.6"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
} }
First I'd use:
php composer.phar self-update
Then I used below command to upgrade:
php composer.phar update
And here is the result:
Search for a package: symfony
Found 15 packages matching symfony
[0] symfony/symfony [1] rgies/symfony [2] php-tmdb/symfony [3] webforge/symfony [4] lexpress/symfony1 [5] symfony/symfony1 [6] sabaki-dev/symfony1 [7] behat/symfony2-extension [8] escapestudios/symfony2-coding-standard [9] smarkio/symfony1 [10] languara/symfony3 [11] m6web/symfony2-coding-standard [12] irongit/symfony2-stream-response [13] polishsymfonycommunity/symfony2-mocker-extension [14] symfony/console
Enter package # to add, or the complete package name if it is not listed: 0
Enter the version constraint to require (or leave blank to use the latest version):
Using version ^3.1 for symfony/symfony
Search for a package: ./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
- Conclusion: don't install symfony/symfony v3.1.6
- Conclusion: don't install symfony/symfony v3.1.5
- Conclusion: don't install symfony/symfony v3.1.4
- Conclusion: don't install symfony/symfony v3.1.3
- Installation request for sensio/generator-bundle (locked at v2.5.3, required as ~2.3) -> satisfiable by sensio/generator-bundle[v2.5.3].
- Conclusion: don't install symfony/symfony v3.1.2
- Conclusion: don't install symfony/symfony v3.1.1
- don't install symfony/finder v3.1.6|don't install symfony/symfony v3.1.0
- don't install symfony/symfony v3.1.0|remove symfony/finder v3.1.6
- don't install symfony/symfony v3.1.0|don't install symfony/finder v3.1.6
- Installation request for symfony/symfony ^3.1 -> satisfiable by symfony/symfony[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6].
- Installation request for symfony/finder (locked at v3.1.6, required as ^3.1) -> satisfiable by symfony/finder[v3.1.6], symfony/symfony[v3.1.6].
Installation failed, reverting ./composer.json to its original content.
I did it with php composer.phar self-update and then php composer.phar update successfully changed to symfony 2.8

Installing Symfony2

I decided to learn symfony so I tried to install it. After getting composer like said in the website, I executed the following command to create a project and get symfony2
composer create-project symfony/framework-standard-edition Website/test
and unfortunately I got this as a message:
> Installing symfony/framework-standard-edition (v2.7.1)
- Installing symfony/framework-standard-edition (v2.7.1)
Downloading: 100%
---
> Created project in Website/test
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
**Problem 1**
- Installation request for sensiolabs/security-checker v2.0.5 -> satisfiable by sensiolabs/security-checker[v2.0.5].
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
**Problem 2**
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5].
- Installation request for sensio/distribution-bundle v4.0.0 -> satisfiable by sensio/distribution-bundle[v4.0.0].
The composer.json file :
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-4": { "": "src/", "SymfonyStandard\\": "app/SymfonyStandard/" }
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.4",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0"
},
"require-dev": {
"sensio/generator-bundle": "~2.3"
},
"scripts": {
"post-root-package-install": [
"SymfonyStandard\\Composer::hookRootPackageInstall"
],
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.7-dev"
}
}
}
and I got a PHP 5.5.9 version and ubuntu 14.04 as OS.
Can someone explain to me why I'm getting these errors and how to solve them?
As per your errors, the problem is you don't have the PHP cURL extension installed.
In Ubuntu, try the following to install the packages
sudo apt-get install curl php5-curl
Now try again.

symfony - Your requirements could not be resolved to an installable set of packages

I am trying to setup a Symfony project that I cloned from a github repo but I'm having problems installing the dependencies.
When I run composer install, this is the result:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/mongodb 1.0.0-BETA1 -> satisfiable by doctrine/mongodb[1.0.0-BETA1].
- doctrine/mongodb 1.0.0-BETA1 requires ext-mongo * -> the requested PHP extension mongo is missing from your system.
Problem 2
- Installation request for symfony/icu 1.1.x-dev -> satisfiable by symfony/icu[1.1.x-dev].
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 3
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.1.x-dev].
- Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].
This is the composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"symfony/icu": "1.1.*",
"doctrine/orm": "2.3.4",
"doctrine/common": "2.3.0",
"doctrine/mongodb-odm": "1.0.*#dev",
"doctrine/mongodb-odm-bundle": "3.0.*#dev",
"twig/twig": "v1.12.2",
"twig/extensions": "v1.0.0",
"monolog/monolog": "1.3.1",
"symfony/monolog-bundle": "v2.3.0",
"doctrine/doctrine-bundle": "v1.2.0",
"doctrine/dbal": "v2.3.2",
"doctrine/doctrine-fixtures-bundle": "2.2.*",
"sensio/generator-bundle": "v2.3.4",
"jdorn/sql-formatter": "v1.2.0",
"gedmo/doctrine-extensions": "v2.3.5",
"symfony/assetic-bundle": "2.4.*#dev",
"symfony/swiftmailer-bundle": "master",
"jms/security-extra-bundle": "1.1.*",
"jms/di-extra-bundle": "1.0.*",
"jms/debugging-bundle": "dev-master",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"guzzle/guzzle": "*",
"rezzza/mailchimp-bundle": "1.0.*#dev",
"knplabs/gaufrette": "dev-master",
"knplabs/knp-gaufrette-bundle": "0.2.*#dev",
"imagine/Imagine": "dev-master",
"stfalcon/tinymce-bundle": "v0.2.0",
"gregwar/captcha-bundle": "dev-master",
"friendsofsymfony/rest-bundle": "1.2.2",
"jms/serializer-bundle": "0.13.0",
"chromedia/utilities": "dev-master",
"chromedia/security-token-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
},
"minimum-stability": "dev"
}
Thanks!
The composer explicitly say that your system misses ext-mongo, lib-icu, and the symfony/icu which is dependent on the 2nd one.
For ext-mongo, check in your php.ini if extension=mongo.so is commented, if it is, uncomment it.
For lib-icu, your missing the intl extension of php for the setup you can follow this answer: Problems with lib-icu dependency when installing Symfony 2.3.x via Composer

Unable to install SonataUserBundle in Symfony2 2.4

I can't install sonata-project/user-bundle with symfony2 2.4. Composer gives me such error message:
Problem 1
- Conclusion: remove symfony/symfony v2.4.0
- Installation request for symfony/framework-standard-edition 2.4.x-dev -> satisfiable by symfony/framework-standard-edition[2.4.x-dev].
- Conclusion: don't install symfony/symfony v2.4.0
- Installation request for sonata-project/user-bundle 2.2.2 -> satisfiable by sonata-project/user-bundle[2.2.2].
- Installation request for friendsofsymfony/user-bundle ~2.0#dev -> satisfiable by friendsofsymfony/user-bundle[2.0.x-dev].
- symfony/framework-standard-edition 2.4.x-dev requires sensio/framework-extra-bundle ~3.0 -> satisfiable by sensio/framework-extra-bundle[v3.0.0].
- sensio/framework-extra-bundle v3.0.0 requires symfony/framework-bundle ~2.4 -> satisfiable by symfony/symfony[v2.4.0], symfony/framework-bundle[v2.4.0].
- sensio/framework-extra-bundle v3.0.0 requires symfony/framework-bundle ~2.4 -> satisfiable by symfony/symfony[v2.4.0], symfony/framework-bundle[v2.4.0].
- Conclusion: don't install symfony/framework-bundle v2.4.0
My composer.json:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0#dev",
"stof/doctrine-extensions-bundle": "~1.1#dev",
"sonata-project/admin-bundle": "~2.1",
"sonata-project/doctrine-orm-admin-bundle": "~2.1",
"sonata-project/user-bundle": "2.2.2",
"knplabs/knp-paginator-bundle": "2.3.*",
"knplabs/knp-menu-bundle": "1.1.*",
"knplabs/knp-menu": "1.1.*"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}
When I delete line "sonata-project/user-bundle": "2.2.2", from composer.json - composer update runs smoothly.
Is sonata-user [2.2.2] not compatible with Symfony2 2.4 ? I can't find any official info about that.
I chceck composer.json od SonataUserBundle and SonataAdminBundle (which I installed successfully), and both require "symfony/http-foundation": "~2.2", so I'm realy out of ideas...
Update
Ticket in github
https://github.com/sonata-project/SonataUserBundle/issues/300#issuecomment-31214179
Change version of friendsofsymfony/user-bundle by modifying composer.json -
"friendsofsymfony/user-bundle": "1.3.3",
and issue the command:
composer update
Worked for me on Symfony 2.4.0
Good News!
I have added fixes to make SonataUserBundle work with FOSUserBundle 2.0*
https://github.com/sonata-project/SonataUserBundle/pull/303

PHP Composer install

I'm in a console with a ssh connection to a server.
Now I have a clone of my project from git.
If I do the following thing: php composer.phar install I get the next error:
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/doctrine-bundle dev-master -> satisfiable by doctrine/doctrine-bundle dev-master.
- doctrine/doctrine-bundle dev-master requires jdorn/sql-formatter >=1.1,<2.0 -> no matching package found.
Problem 2
- Installation request for doctrine/doctrine-bundle 1.0.x-dev -> satisfiable by doctrine/doctrine-bundle 1.0.x-dev.
- doctrine/doctrine-bundle 1.0.x-dev requires jdorn/sql-formatter >=1.1,<2.0 -> no matching package found.
Problem 3
- Installation request for zendframework/zend-i18n 2.0.5 -> satisfiable by zendframework/zend-i18n 2.0.5.
- zendframework/zend-i18n 2.0.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 4
- zendframework/zend-i18n 2.0.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- zendframework/zend-validator 2.0.5 requires zendframework/zend-i18n 2.0.5 -> satisfiable by zendframework/zend-i18n 2.0.5.
- Installation request for zendframework/zend-validator 2.0.5 -> satisfiable by zendframework/zend-validator 2.0.5.
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.
My composer.js:
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.0.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.1.*",
"symfony/monolog-bundle": "2.1.*",
"sensio/distribution-bundle": "2.1.*",
"sensio/framework-extra-bundle": "2.1.*",
"sensio/generator-bundle": "2.1.*",
"jms/security-extra-bundle": "1.2.*",
"jms/di-extra-bundle": "1.1.*",
"friendsofsymfony/user-bundle": "*",
"friendsofsymfony/jsrouting-bundle": "1.0.*",
"mv/name1-bundle" : "*",
"mv/name2-bundle" : "*",
"psliwa/pdf-bundle": "*"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"repositories": [
{
"type": "vcs",
"url": "git#bitbucket.org:name1/name1bundle.git"
},
{
"type": "vcs",
"url": "git#bitbucket.org:name2/name2bundle.git"
},
{
"type": "composer",
"url": "http://packages.zendframework.com/"
},
{
"type": "composer",
"url": "http://packagist.org/"
}
],
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "public_html",
"symfony-assets-install": "symlink"
}
}
The strange thing is, local it works like a charm! but on the server it gives me errors. What is the problem and how to solve this?
Oh and I can't do php composer.phar update (extern hosted server)
Loading composer repositories with package information
Updating dependencies
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in phar:///composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 47
Thnx.
wget the newest composer.phar to make sure you're on the safe side there. Or even better you can do:
php composer.phar self-update
Problems 1 and 2 most likely have some illegal notation for versions. Try adding the jdorn/sql-formatter package directly to your own requirements with a specific version number.
Problems 3 and 4 have nothing to do with composer. The PHP extension intl is not installed on your system but it's a required dependency of some ZF2 components. Which means you need to install it or compile it into PHP on your server.

Categories