Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can´t require in fresh Laravel 8 #358

Closed
tobischulz opened this issue Nov 22, 2021 · 3 comments
Closed

Can´t require in fresh Laravel 8 #358

tobischulz opened this issue Nov 22, 2021 · 3 comments

Comments

@tobischulz
Copy link

tobischulz commented Nov 22, 2021

Hello there, i cant require this nice package in a fresh laravel 8. As i have seen there are already dependency issues with the required php-ffmpeg/php-ffmpeg package which uses an old version of doctrine/cache. But it looks like there are more dependency problems :/

Will this package be still maintained? Looks very good to me and would love to use it. Im willing to show my support by sponsoring this package.

Environment

  • MacOS Monterey (12.0.1)
  • PHP 8.0.12
  • Composer 2.1.8
  • Laravel 8.73.1

Error

Cant require this package in a fresh new laravel 8 project.

composer require pbmedia/laravel-ffmpeg

Using version ^7.5 for pbmedia/laravel-ffmpeg
./composer.json has been updated
Running composer update pbmedia/laravel-ffmpeg
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - pbmedia/laravel-ffmpeg[7.5.11, ..., 7.5.12] require php-ffmpeg/php-ffmpeg ^0.18.0 -> satisfiable by php-ffmpeg/php-ffmpeg[v0.18.0].
    - pbmedia/laravel-ffmpeg 7.5.10 requires php-ffmpeg/php-ffmpeg ^0.17.0|^0.18.0 -> satisfiable by php-ffmpeg/php-ffmpeg[v0.17.0, v0.18.0].
    - pbmedia/laravel-ffmpeg[7.5.0, ..., 7.5.9] require php-ffmpeg/php-ffmpeg ^0.17.0 -> satisfiable by php-ffmpeg/php-ffmpeg[v0.17.0].
    - php-ffmpeg/php-ffmpeg[v0.17.0, ..., v0.18.0] require alchemy/binary-driver ^1.5 || ~2.0.0 || ^5.0 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0, v2.0.0, 5.0.0, 5.1.0, v5.1.1, v5.2.0].
    - alchemy/binary-driver 1.5.0 requires monolog/monolog ~1.3 -> found monolog/monolog[1.3.0, ..., 1.x-dev] but the package is fixed to 2.3.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - alchemy/binary-driver[1.6.0, v2.0.0, 5.0.0, ..., 5.1.0] require monolog/monolog ^1.3 -> found monolog/monolog[1.3.0, ..., 1.x-dev] but the package is fixed to 2.3.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - alchemy/binary-driver[v5.1.1, ..., v5.2.0] require psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires pbmedia/laravel-ffmpeg ^7.5 -> satisfiable by pbmedia/laravel-ffmpeg[7.5.0, ..., 7.5.12].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

How to reproduce

  • laravel new ffmpeg-laravel
  • cd into ffmpeg-laravel
  • composer require pbmedia/laravel-ffmpeg

Thank you

@pascalbaljet
Copy link
Collaborator

Thanks for sharing, and thanks for the detailed report! With this package, I've got an existing Laravel 8 app running (on PHP 8.0), so I think it's broken for new apps because they come with PSR v2 out of the box.

Here's a quick fix:
PHP-FFMpeg/PHP-FFMpeg#823 (comment)

I will look for a permanent solution!

@pascalbaljet
Copy link
Collaborator

I've opened a PR for the alchemy/binary-driver library that should solve this problem: alchemy-fr/BinaryDriver#47

@pascalbaljet
Copy link
Collaborator

Fixed in v7.8.0 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants