Closed abobus-2288 closed 1 month ago
I'm not sure why your Composer is pulling version ^1.0.0
of DiscordPHP – are you providing a version constraint when requiring it? You could try requiring it with -W
maybe?
For what it's worth, unless you have a very peculiar idea in mind, using DiscordPHP directly alongside a Laravel installation will provide little to no value. I highly suggest checking out https://laracord.com if you want to use DiscordPHP with Laravel features.
His problem isn't that. DiscordPHP has no stable release, and composer is pulling the latest stable. He should require latest RC version.
And Laravel works fine with DiscordPHP. Laravel is ReactPHP compatible, like Symfony. Of course you can't run a ReactPHP app behind a webserver, but that doesn't make your statement correct either.
On Thu, 6 Jun 2024, 23:02 Brandon, @.***> wrote:
I'm not sure why your Composer is pulling version ^1.0.0 of DiscordPHP – are you providing a version constraint when requiring it?
For what it's worth, unless you have a very peculiar idea in mind, using DiscordPHP directly alongside a Laravel installation will provide little to no value. I highly suggest checking out https://laracord.com if you want to use DiscordPHP with Laravel features.
— Reply to this email directly, view it on GitHub https://github.com/discord-php/DiscordPHP/issues/1232#issuecomment-2153402969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE7SAOCZDV4QSTSDTVDHT3ZGDE6RAVCNFSM6AAAAABI5BWHDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTGQYDEOJWHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
His problem isn't that. DiscordPHP has no stable release, and composer is pulling the latest stable. He should require latest RC version.
Good catch! I tunneled and didn't see that Composer was iterating through the available versions.
And Laravel works fine with DiscordPHP. Laravel is ReactPHP compatible, like Symfony. Of course you can't run a ReactPHP app behind a webserver, but that doesn't make your statement correct either.
Totally, I didn't say or suggest that it didn't. I was merely implying that if you are only installing DiscordPHP alongside Laravel to take advantage of Laravel-specific features without the need for a full blown web application, Laracord (or even Laravel Zero) would be worth taking a look at. Sorry for the confusion.
For anyone who's having the same issue with php 8.3, using composer require team-reflex/discord-php -W
(note -W option) works like a charm, like @Log1x recommended!
Environment
Trying to install DiscordPHP into freshly created Laravel^11 project that runs on PHP^8.3.6, but getting this error:
` Your requirements could not be resolved to an installable set of packages.
Problem 1
To Reproduce
composer create-project laravel/laravel discord-test && composer require team-reflex/discord-php