I Ran
Composer update --ignore-platform-reqs
And now i have an error which is like That:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".
But I miss changing PHP 8.1 for PHP 7.2 in PHP Version, so When i fix the bug with:
Composer update --ignore-platform-reqs
I suppose the version of packages changed to version that symfony 5.3 not support,
I have the choice to remake the symfony environment since zero with adding packages in case of my PHP version is like 7.2
But it is not sure that it works
Or downgrading packages in old versions, which I don't know if it's is gone working to,
My question 1 is what can I do for using composer for the other package that I need
My question 2 is
how can I find the packages versions for symfony 5.3
(just to change it in composer.json before composer update)
My question 3 is
how can I use the version of composer which is compatible avec symfony 5.3
My last question is
"IS IT POSSIBLE TO DO THESES ? " The PHP version in my composer json is: "php": ">=7.2.5" and my PHP version is now 8.4 by:
sudo update-alternatives --config php
I'll rephrase my question, which is more specific as follows: Which packages use a PHP version > 7.2 ? or: how can I find them ?
composer show -D gives:
bentools/webpush-bundle 0.8 Send push notifications through Web Push Protocol to your Symfony users.
composer/package-versions-deprecated 1.11.99.3 Composer plugin that provides efficient querying for installed package versions (no runtime IO)
doctrine/annotations 1.14.4 Docblock Annotations Parser
doctrine/doctrine-bundle 2.7.0 Symfony DoctrineBundle
doctrine/doctrine-fixtures-bundle 3.4.5 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle 3.2.5 Symfony DoctrineMigrationsBundle
doctrine/orm 2.20.2 Object-Relational-Mapper for PHP
dompdf/dompdf v2.0.8 DOMPDF is a CSS 2.1 compliant HTML to PDF converter
knplabs/knp-snappy-bundle v1.10.4 Easily create PDF and images in Symfony by converting Twig/HTML templates.
knpuniversity/oauth2-client-bundle v2.18.1 Integration with league/oauth2-client to provide services
league/oauth2-facebook 2.2.0 Facebook OAuth 2.0 Client Provider for The PHP League OAuth2-Client
league/oauth2-google 4.0.1 Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client
lexik/jwt-authentication-bundle v2.19.1 This bundle provides JWT authentication for your Symfony REST API
nowakowskir/php-jwt 2.1.1 JSON Web Token implementation for PHP.
phpdocumentor/reflection-docblock 5.6.1 With this component, a library can provide support for annotations via DocBlocks or otherwise ...
sensio/framework-extra-bundle v6.2.10 This bundle provides a way to configure your controllers with annotations
symfony/apache-pack v1.0.1 A pack for Apache support in Symfony
symfony/asset v5.3.14 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files ...
symfony/browser-kit v5.3.14 Simulates the behavior of a web browser, allowing you to make requests, click on links and sub...
symfony/console v5.3.16 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v5.3.14 Converts CSS selectors to XPath expressions
symfony/debug-bundle v5.3.14 Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from ...
symfony/dotenv v5.3.14 Registers environment variables from a .env file
symfony/expression-language v5.3.14 Provides an engine that can compile and evaluate expressions
symfony/flex v1.22.0 Composer plugin for Symfony
symfony/form v5.3.14 Allows to easily create, process and reuse HTML forms
symfony/framework-bundle v5.3.15 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client v5.3.14 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/intl v5.3.14 Provides a PHP replacement layer for the C intl extension that includes additional data from t...
symfony/mailer v5.3.14 Helps sending emails
symfony/maker-bundle v1.39.1 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so yo...
symfony/mime v5.3.14 Allows manipulating MIME messages
symfony/monolog-bundle v3.8.0 Symfony MonologBundle
symfony/notifier v5.3.14 Sends notifications via one or more channels (email, SMS, ...)
symfony/process v5.3.14 Executes commands in sub-processes
symfony/property-access v5.3.14 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info v5.3.14 Extracts information about PHP class' properties using metadata of popular sources
symfony/proxy-manager-bridge v5.3.14 Provides integration for ProxyManager with various Symfony components
symfony/rate-limiter v5.3.14 Provides a Token Bucket implementation to rate limit input and output in your application
symfony/runtime v5.3.14 Enables decoupling PHP applications from global state
symfony/security-bundle v5.3.14 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/serializer v5.3.14 Handles serializing and deserializing data structures, including object graphs, into array str...
symfony/stopwatch v5.3.14 Provides a way to profile code
symfony/string v5.3.14 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and graphem...
symfony/swiftmailer-bundle v3.5.4 Symfony SwiftmailerBundle
symfony/translation v5.3.14 Provides tools to internationalize your application
symfony/twig-bundle v5.3.14 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator v5.3.14 Provides tools to validate values
symfony/web-link v5.3.14 Manages links between resources
symfony/web-profiler-bundle v5.3.14 Provides a development tool that gives detailed information about the execution of any request
symfony/yaml v5.3.14 Loads and dumps YAML files
symfonycasts/verify-email-bundle v1.11.0 Simple, stylish Email Verification for Symfony
twig/extra-bundle v3.7.0 A Symfony bundle for extra Twig extensions
twig/intl-extra v3.7.0 A Twig extension for Intl
twig/twig v3.20.0 Twig, the flexible, fast, and secure template language for PHP
I Ran
Composer update --ignore-platform-reqs
And now i have an error which is like That:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".
But I miss changing PHP 8.1 for PHP 7.2 in PHP Version, so When i fix the bug with:
Composer update --ignore-platform-reqs
I suppose the version of packages changed to version that symfony 5.3 not support,
I have the choice to remake the symfony environment since zero with adding packages in case of my PHP version is like 7.2
But it is not sure that it works
Or downgrading packages in old versions, which I don't know if it's is gone working to,
My question 1 is what can I do for using composer for the other package that I need
My question 2 is
how can I find the packages versions for symfony 5.3
(just to change it in composer.json before composer update)
My question 3 is
how can I use the version of composer which is compatible avec symfony 5.3
My last question is
"IS IT POSSIBLE TO DO THESES ? " The PHP version in my composer json is: "php": ">=7.2.5" and my PHP version is now 8.4 by:
sudo update-alternatives --config php
I'll rephrase my question, which is more specific as follows: Which packages use a PHP version > 7.2 ? or: how can I find them ?
composer show -D gives:
bentools/webpush-bundle 0.8 Send push notifications through Web Push Protocol to your Symfony users.
composer/package-versions-deprecated 1.11.99.3 Composer plugin that provides efficient querying for installed package versions (no runtime IO)
doctrine/annotations 1.14.4 Docblock Annotations Parser
doctrine/doctrine-bundle 2.7.0 Symfony DoctrineBundle
doctrine/doctrine-fixtures-bundle 3.4.5 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle 3.2.5 Symfony DoctrineMigrationsBundle
doctrine/orm 2.20.2 Object-Relational-Mapper for PHP
dompdf/dompdf v2.0.8 DOMPDF is a CSS 2.1 compliant HTML to PDF converter
knplabs/knp-snappy-bundle v1.10.4 Easily create PDF and images in Symfony by converting Twig/HTML templates.
knpuniversity/oauth2-client-bundle v2.18.1 Integration with league/oauth2-client to provide services
league/oauth2-facebook 2.2.0 Facebook OAuth 2.0 Client Provider for The PHP League OAuth2-Client
league/oauth2-google 4.0.1 Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client
lexik/jwt-authentication-bundle v2.19.1 This bundle provides JWT authentication for your Symfony REST API
nowakowskir/php-jwt 2.1.1 JSON Web Token implementation for PHP.
phpdocumentor/reflection-docblock 5.6.1 With this component, a library can provide support for annotations via DocBlocks or otherwise ...
sensio/framework-extra-bundle v6.2.10 This bundle provides a way to configure your controllers with annotations
symfony/apache-pack v1.0.1 A pack for Apache support in Symfony
symfony/asset v5.3.14 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files ...
symfony/browser-kit v5.3.14 Simulates the behavior of a web browser, allowing you to make requests, click on links and sub...
symfony/console v5.3.16 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v5.3.14 Converts CSS selectors to XPath expressions
symfony/debug-bundle v5.3.14 Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from ...
symfony/dotenv v5.3.14 Registers environment variables from a .env file
symfony/expression-language v5.3.14 Provides an engine that can compile and evaluate expressions
symfony/flex v1.22.0 Composer plugin for Symfony
symfony/form v5.3.14 Allows to easily create, process and reuse HTML forms
symfony/framework-bundle v5.3.15 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client v5.3.14 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/intl v5.3.14 Provides a PHP replacement layer for the C intl extension that includes additional data from t...
symfony/mailer v5.3.14 Helps sending emails
symfony/maker-bundle v1.39.1 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so yo...
symfony/mime v5.3.14 Allows manipulating MIME messages
symfony/monolog-bundle v3.8.0 Symfony MonologBundle
symfony/notifier v5.3.14 Sends notifications via one or more channels (email, SMS, ...)
symfony/process v5.3.14 Executes commands in sub-processes
symfony/property-access v5.3.14 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info v5.3.14 Extracts information about PHP class' properties using metadata of popular sources
symfony/proxy-manager-bridge v5.3.14 Provides integration for ProxyManager with various Symfony components
symfony/rate-limiter v5.3.14 Provides a Token Bucket implementation to rate limit input and output in your application
symfony/runtime v5.3.14 Enables decoupling PHP applications from global state
symfony/security-bundle v5.3.14 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/serializer v5.3.14 Handles serializing and deserializing data structures, including object graphs, into array str...
symfony/stopwatch v5.3.14 Provides a way to profile code
symfony/string v5.3.14 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and graphem...
symfony/swiftmailer-bundle v3.5.4 Symfony SwiftmailerBundle
symfony/translation v5.3.14 Provides tools to internationalize your application
symfony/twig-bundle v5.3.14 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator v5.3.14 Provides tools to validate values
symfony/web-link v5.3.14 Manages links between resources
symfony/web-profiler-bundle v5.3.14 Provides a development tool that gives detailed information about the execution of any request
symfony/yaml v5.3.14 Loads and dumps YAML files
symfonycasts/verify-email-bundle v1.11.0 Simple, stylish Email Verification for Symfony
twig/extra-bundle v3.7.0 A Symfony bundle for extra Twig extensions
twig/intl-extra v3.7.0 A Twig extension for Intl
twig/twig v3.20.0 Twig, the flexible, fast, and secure template language for PHP
1 Answer
Reset to default -1The workaround is to comment out the lines after:
$issues = array();
/**
...
**/
in /vendor/composer/platform_check.php
or have a PHP version > 8.1 in my case (not PHP Cli), when you run
update-alternatives --config php
.Don't miss to run
php -v
to be sureThis is a bug following a reinstallation of Composer after a bug with PHP Stan or PHP Unit (installation via
composer require
...). I need to check my Twig files, which are in 500, probably but not only sure, due to a package upgrade, when I changed my PHP version and rancomposer update
thencomposer update --ignore-reqs
.
ignore-platform-reqs
in the first place? Finally, keep in mind that Symfony 5.3 is out of support since Januar 2022 – Nico Haase Commented Mar 31 at 7:51