goavega-software/laravel-azure-servicebus-topic

How do I install this package on laravel 8?

Closed this issue · 7 comments

I have the need to use this package in version 8 of laravel, I tried to download it and make the necessary modifications for that, but I was unable to make it work. Can you help me with this?

sn123 commented

Guess would make sense to add support for 6.x, 7.x and 8.x respectively.

sn123 commented

There's currently a blocker to add Laravel 8.x support, the reason being windows-azure SDK uses Guzzle 6.x whereas Laravel 8.x requires GuzzleHttp 7.x. See azure/azure-sdk-for-php/#1007 for more details.

Given that Windows Azure SDK for PHP is more or less abandoned, I really doubt it would be fixed over there. Our only viable option seems to be rewriting the SDK (at least the service bus parts) in PHP or use a fork which already supports Guzzle 7.x.

sn123 commented

Did some more digging and found a fork which ups the version numbers. The fork uses microsoft/azure-storage-common package which again relies on Guzzle 6.x, so basically a dead-end.

I think the way forward would be to fork windows-azure package, strip out all other stuff like Blobs and Media Server and have a dedicated azure-servicebus package. Finally use the azure-servicebus package over here.

sn123 commented

@jonatansantana We've updated the dev-master version of this package to support Laravel 8.x. This has been done by forking out Windows-Azure SDK and only keeping Service Bus code bits as mentioned above. Since 8.x support is currently experimental, the only way to include is by pointing to dev-master and using the git fork of the SDK. Below are the composer.json changes required:

"repositories": [{
        "type": "git",
        "url": "https://github.com/sn123/azure-sdk-for-php.git"
    }],
"require: {
        ...
        "goavega-software/laravel-azure-servicebus": "dev-master"
},

Rest everything should work the same as older laravels. Could you help us in testing the package and if all looks good, we'll go ahead and publish this along with the Forked SDK.

sn123 commented

Hi, thanks for responding. I am very happy to have considered my email. And I think the idea of being able to contribute to the project is interesting. But at the moment I am very busy with other projects of the company I work for and in a way this makes my contribution a little difficult. Taking advantage of the opportunity, I would also like to inform you that, whenever I try to install your package in a docker container through the composer, I have several errors and the installation is not completed. I did a lot of research on this problem and didn't find much information to help me solve it. But without docker the installation takes place normally. Would you know how to inform what's going on? Attached I leave some images. [image: image.png] [image: image.png] Em qua., 21 de out. de 2020 às 07:43, sn123 notifications@github.com escreveu:

@jonatansantana https://github.com/jonatansantana We've updated the dev-master version of this package to support Laravel 8.x. This has been done by forking out Windows-Azure SDK and only keeping Service Bus code bits as mentioned above. Since 8.x support is currently experimental, the only way to include is by pointing to dev-master and using the git fork of the SDK. Below are the composer.json changes required: "repositories": [{ "type": "git", "url": "https://github.com/sn123/azure-sdk-for-php.git" }],"require: { ... "goavega-software/laravel-azure-servicebus": "dev-master"}, Rest everything should work the same as older laravels. Could you help us in testing the package and if all looks good, we'll go ahead and publish this along with the Forked SDK. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHY4RE535JIJBZVHO5MKZW3SL23MJANCNFSM4SVF2Y3A .

Can you add those error messages in the issue?

Analyzing the last error messages I sent, I noticed that the problem was with my docker image and not in the package. I managed to execute the package with your instructions in laravel 8.