Snapchat / business-sdk-php

Other
4 stars 3 forks source link

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

Open Ferdinandgushcloud opened 9 months ago

Ferdinandgushcloud commented 9 months ago

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].

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).

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 commented 7 months ago

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 commented 5 days ago

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().