imdhemy laravel-purchases
인앱결제시 유효성 체크 및 다양한 컨트롤이 가능한 유용한 패키지입니다.
Install
composer require imdhemy/laravel-purchases
Error
Problem 1
- imdhemy/laravel-purchases[1.7.0, ..., 1.7.2] require imdhemy/appstore-iap ^1.5 -> satisfiable by imdhemy/appstore-iap[1.5.0, ..., 1.x-dev].
- imdhemy/laravel-purchases[1.8.0, ..., 1.x-dev] require php >=8.0 -> your php version (7.4.33) does not satisfy that requirement.
- imdhemy/appstore-iap 1.6.0 require php >=8.0 -> your php version (7.4.33) does not satisfy that requirement.
- imdhemy/appstore-iap[1.5.0, ..., 1.5.4] require lcobucci/jwt ^4.2 -> found lcobucci/jwt[4.2.0, ..., 4.4.x-dev] but the package is fixed to 3.3.3 (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.
- imdhemy/appstore-iap 1.x-dev requires lcobucci/jwt ^4.3 -> found lcobucci/jwt[4.3.0, 4.3.x-dev, 4.4.x-dev] but the package is fixed to 3.3.3 (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 imdhemy/laravel-purchases ^1.7 -> satisfiable by imdhemy/laravel-purchases[1.7.0, ..., 1.x-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
- 나는 php 7.4.33 imdhemy/appstore-iap 1.6.0 이상은 지원하지 않으므로 1.5.4를 실행해야 한다.
- 1.5.4를 하려고 해도 requires lcobucci/jwt ^4.3 이상이 되어야 하는데 나의 패키지는 3.3.3 에 fixed 되어 있다. 먼저 이 부분부터 업데이트 하자
composer require lcobucci/jwt ^4.3
위처럼 처리하려고 하는데 다시 유효성 에러가 있다.
Problem 1
- tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
- tymon/jwt-auth 1.0.2 requires lcobucci/jwt <3.4 -> found lcobucci/jwt[1.0.0, 1.0.1, 1.0.2, 1.1.0, 2.0.0, ..., 2.1.x-dev, 3.0.0, ..., 3.3.x-dev] but it conflicts with your root composer.json require (^4.3).
- jwt-auth 2.x 대를 하려고 하면 laravel version 이 9/10 이어야 한다..
- 결국 php를 업데이트 해야 한다.ㅠ.ㅠ