kyzegs / laracord
Discord API wrapper
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
- dev-main
- v2.0.0
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.1
- v1.0.0
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- dev-feature/docs-logo
- dev-refactor/v2-cleanup
- dev-feature/platform-builders
- dev-fix/client-correctness
- dev-fix/endpoint-catalog
- dev-feature/webhook-events
- dev-feature/telescope-observability
- dev-develop
This package is auto-updated.
Last update: 2026-11-03 08:58:15 UTC
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.