Laravel-apidoc-generator: Laravel 7.5.2 composer doesn't allow to install apidoc-generator

Created on 13 Apr 2020  路  9Comments  路  Source: mpociot/laravel-apidoc-generator

This library doesn't work with Laravel 7.5.2, while the readme and the website state:
Note: PHP 7 and Laravel 5.5 or higher are required.

As I see, the issue is in:
mnapoli/front-yaml 1.6.0

the composer.json:
"symfony/yaml": "~2.1|^3.0|^4.0",

Using version ^4.7 for mpociot/laravel-apidoc-generator
./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
    - mpociot/laravel-apidoc-generator v4.x-dev requires nunomaduro/collision ^3.0 -> satisfiable by nunomaduro/collision[v3.0.0, v3.0.1] but these conflict with your requirements or minimum-stability.
    - mpociot/laravel-apidoc-generator 4.7.0 requires mpociot/documentarian ^0.4.0 -> satisfiable by mpociot/documentarian[0.4.0].
    - Installation request for mpociot/laravel-apidoc-generator ^4.7 -> satisfiable by mpociot/laravel-apidoc-generator[4.7.0, v4.x-dev].
    - Conclusion: remove symfony/routing v5.0.7
    - Conclusion: don't install symfony/routing v5.0.7
    - Conclusion: don't install mnapoli/front-yaml 1.6.0

Most helpful comment

Hi, I'm no longer attending to any issues in this project. Please use Scribe and see if that fixes your problem. Scribe is currently in beta, but should be in v1 stable by next week. Also see the migration guide.

All 9 comments

hey there!,

I was able to get it working on Laravel Framework 7.6.2 with the following commands.

composer config minimum-stability dev

composer config prefer-stable true

composer require --no-update "mpociot/laravel-apidoc-generator"

This library doesn't work with Laravel 7.5.2, while the readme and the website state:
Note: PHP 7 and Laravel 5.5 or higher are required.

As I see, the issue is in:
mnapoli/front-yaml 1.6.0

the composer.json:
"symfony/yaml": "~2.1|^3.0|^4.0",

Using version ^4.7 for mpociot/laravel-apidoc-generator
./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
    - mpociot/laravel-apidoc-generator v4.x-dev requires nunomaduro/collision ^3.0 -> satisfiable by nunomaduro/collision[v3.0.0, v3.0.1] but these conflict with your requirements or minimum-stability.
    - mpociot/laravel-apidoc-generator 4.7.0 requires mpociot/documentarian ^0.4.0 -> satisfiable by mpociot/documentarian[0.4.0].
    - Installation request for mpociot/laravel-apidoc-generator ^4.7 -> satisfiable by mpociot/laravel-apidoc-generator[4.7.0, v4.x-dev].
    - Conclusion: remove symfony/routing v5.0.7
    - Conclusion: don't install symfony/routing v5.0.7
    - Conclusion: don't install mnapoli/front-yaml 1.6.0

Hmmm. And Laravel 7.5.2 uses Symfony 5? That's weird, considering 7 was on Symfony 4, IIRC.

This library doesn't work with Laravel 7.5.2, while the readme and the website state:
Note: PHP 7 and Laravel 5.5 or higher are required.

As I see, the issue is in:
mnapoli/front-yaml 1.6.0

the composer.json:
"symfony/yaml": "~2.1|^3.0|^4.0",

Using version ^4.7 for mpociot/laravel-apidoc-generator
./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
    - mpociot/laravel-apidoc-generator v4.x-dev requires nunomaduro/collision ^3.0 -> satisfiable by nunomaduro/collision[v3.0.0, v3.0.1] but these conflict with your requirements or minimum-stability.
    - mpociot/laravel-apidoc-generator 4.7.0 requires mpociot/documentarian ^0.4.0 -> satisfiable by mpociot/documentarian[0.4.0].
    - Installation request for mpociot/laravel-apidoc-generator ^4.7 -> satisfiable by mpociot/laravel-apidoc-generator[4.7.0, v4.x-dev].
    - Conclusion: remove symfony/routing v5.0.7
    - Conclusion: don't install symfony/routing v5.0.7
    - Conclusion: don't install mnapoli/front-yaml 1.6.0

I had the same problem and it was because I had installed darkaonline/l5-swagger:^7.0

Laravel Framework 7.7.1

So the problem seems to be conflicting deps from other packages?

@Tantuss resolved your issue?

Entonces, 驴el problema parece ser conflictos deps de otros paquetes?

So the problem seems to be conflicting deps from other packages?

If I am already passing the swagger documentation to laravel-apidoc-generator.

At the moment of trying to test the laravel-apidoc-generator package I generate the same dependencies error and I saw that the error is due to dependency with the swagger package, I eliminated it and there is if I could test laravel-apidoc-generator without any problem

Laravel version 7.9.2 current

I have this same issue. Currently at:

Laravel Framework 6.18.11

I have PR open in a dependency of this package: https://github.com/mnapoli/FrontYAML/pull/21
This fixed my issues for now by adding this to composer.json:

"repositories": [ { "type":"github", "url":"https://github.com/tomcoonen/FrontYAML" } ]

"require-dev": { "mnapoli/front-yaml": "dev-symfony5 as 1.6.0" }

Hi, I'm no longer attending to any issues in this project. Please use Scribe and see if that fixes your problem. Scribe is currently in beta, but should be in v1 stable by next week. Also see the migration guide.

Was this page helpful?
0 / 5 - 0 ratings