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

Request for Assistance: Issue Installing SDK on Laravel Framework v10 #6

Open
Ferdinandgushcloud opened this issue Feb 6, 2024 · 2 comments

Comments

@Ferdinandgushcloud
Copy link

Hi Support,

I'm attempting to integrate this SDK into my Laravel framework v10. However, I've encountered the following issue :

- Root composer.json requires mcamara/laravel-localization ^1.8 -> satisfiable by mcamara/laravel-localization[V1.8.0]. - mcamara/laravel-localization V1.8.0 requires laravel/framework ~5.2.0||~5.3.0||~5.4.0||~5.5.0||~5.6.0||~5.7.0||~5.8.0||^6.0||^7.0||^8.0||^9.0|^10.0 -> satisfiable by laravel/framework[v10.0.0, ..., v10.43.0]. - laravel/framework[v10.0.0, ..., v10.43.0] require monolog/monolog ^3.0 -> satisfiable by monolog/monolog[3.0.0, ..., 3.5.0]. - You can only install one version of a package, so only one of these can be installed: monolog/monolog[1.1.0, ..., 1.27.1, 2.0.0, ..., 2.9.2, 3.0.0, ..., 3.5.0]. - Snapchat/business-sdk-php dev-release requires monolog/monolog ^2.8.0 -> satisfiable by monolog/monolog[2.8.0, 2.9.0, 2.9.1, 2.9.2]. - Root composer.json requires snapchat/business-sdk-php dev-release -> satisfiable by Snapchat/business-sdk-php[dev-release].

When attempting to downgrade my Monolog version, I encountered another error message:
- laravel/framework[v10.0.0, ..., v10.43.0] require monolog/monolog ^3.0 -> found monolog/monolog[3.0.0, ..., 3.5.0] but it conflicts with your root composer.json require (^2.9). - Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[v10.0.0, ..., v10.43.0].

Is it possible to set up this SDK on Laravel framework v10? Alternatively, do you have any other suggestions for installing this SDK on my current framework?

@bender-norstat
Copy link

Dear Snapchat Support Team,

I'm facing the same issue and can't install this SDK in laravel 10 as it requires an older monolog version. Any chance to update monolog requirement for your SDK?

Thanks

@FrozenGod
Copy link

I have forked the repository and did some changes for it to be compatible. You can either do the same and look on my commits to do the same or use my version of the repository before the official team fixes it. https://github.com/FrozenGod/business-sdk-php

If you decide to use my forked version please use with caution and test before production. I tested it and it sends events, but I didn't edit all the Models/Events/Traits. I just updated the composer.json dependencies and the core code at ConversionApi.php and DefaultApi.php.

It's also compatible with Guzzle 7.x now because the current version uses deprecated settle() and \GuzzleHttp\json_encode().

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

3 participants