Tentei executar o comando abaixo mas o composer acusou um erro por causa das dependências. Também tentei usar o composer update como sugerido pelo Vinicius em outro tópico sobre o assunto. Exite algum outro pacote recomendável para atender à demanda do projeto? Estou usando o https://packagist.org/packages/php-http/discovery. Serve?
foi isso que aconteceu:
$ composer require nyholm/psr7-server
./composer.json has been updated
Running composer update nyholm/psr7-server --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- nyholm/psr7-server[0.1.0, ..., 0.4.2, 1.0.0] require php ^7.1 -> your php version (8.2.8) does not satisfy that requirement.
- nyholm/psr7-server[1.0.1, ..., 1.0.2] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but it conflicts with your root composer.json require (^2.0).
- Root composer.json requires nyholm/psr7-server * -> satisfiable by nyholm/psr7-server[0.1.0, ..., 0.4.2, 1.0.0, 1.0.1, 1.0.2].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.