Search code examples
phpsymfonycomposer-phpfosrestbundlesymfony5

Unable to install FOSRestBundle with Symfony 5


I was trying to install FOSRestBundle on Symfony 5 using composer but got the following error message:

friendsofsymfony/rest-bundle 2.7.1 requires symfony/config ^3.4|^4.3

Is it possible to manually install FOSRestBundle with Symfony 5; as it seems it will not be updated and instead API Platform will be maintained in future?

I don't want to use API Platform as it has lot of stuff not required by my project.


Solution

  • Thanks GrenierJ, an issue is already open and as per xabbuh, the master now serves for the development of FOSRestBundle 3.0. Its version constraints already allow Symfony 5 components. I tried to install the dev-master using composer require --dev friendsofsymfony/rest-bundle:dev-master and it successfully installed. Its under development so all of its features may not be compatible with Symfony 5.