kyzegs / laracord
Discord API wrapper
v2.0.0
2026-11-03 08:50 UTC
Requires
- php: ^8.3
- composer-runtime-api: ^2.2
- ext-json: *
- ext-sodium: *
- guzzlehttp/guzzle: ^7.15.2
- guzzlehttp/promises: ^2.0
- guzzlehttp/psr7: ^2.0
- illuminate/cache: ^12.0|^13.0
- illuminate/collections: ^12.0|^13.0
- illuminate/console: ^12.0|^13.0
- illuminate/container: ^12.0|^13.0
- illuminate/contracts: ^12.0|^13.0
- illuminate/http: ^12.0|^13.0
- illuminate/notifications: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
- kyzegs/guzzle-rate-limit-middleware: ^1.3
- laravel/socialite: ^5.23
- psr/http-message: ^1.1|^2.0
- psr/log: ^2.0|^3.0
- symfony/http-foundation: ^7.2|^8.0
Requires (Dev)
- driftingly/rector-laravel: ^2.0
- larastan/larastan: ^3.0
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^4.4
- phpunit/phpunit: ^12.5
- rector/rector: ^2.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laracord
Laravel-native Discord HTTP platform client for PHP 8.3+ and Laravel 12–13.
use Kyzegs\Laracord\Facades\Laracord; $message = Laracord::bot()->messages()->create( ['channel_id' => '123456789012345678'], ['content' => 'Hello from Laracord'], ); echo $message->json('id');
Laracord provides bot and OAuth bearer contexts, Discord-aware cross-process rate limiting, every catalogued HTTP route, multipart uploads, Socialite, webhook notifications, and signed interaction/webhook-event helpers.
composer require kyzegs/laracord:^2.0 php artisan vendor:publish --tag=laracord-config
See docs/docs/getting-started.md. Upgrading from 1.x? See UPGRADE-2.0.md.
Every route in Discord's HTTP API is catalogued, and a weekly job checks that against Discord's OpenAPI spec. Gateway, voice transport, RPC, Embedded App SDK, and Social SDK clients are intentionally outside scope.
MIT licensed.