vengine / discord-core
discord-bot core in php
1.3.2
2025-05-31 16:31 UTC
Requires
- ext-json: *
- ext-mbstring: *
- ext-sodium: *
- ext-zlib: *
- composer/semver: ^3.3
- guzzlehttp/guzzle: *
- monolog/monolog: ^3.3
- php-ffmpeg/php-ffmpeg: *
- phpseclib/phpseclib: *
- team-reflex/discord-php: ^10.3
- vengine-libs/console: *
- vengine-libs/dbal: *
- vengine-libs/migrations: *
- vengine-libs/repository: *
- vengine/cache: *
- vengine/container: ^4.0
This package is auto-updated.
Last update: 2026-05-29 02:02:42 UTC
README
composer require vengine/discord-core
run
<?php $_SERVER['base.dir'] = __DIR__; // base.dir required for runtime migrations $configurator = Configurator::create([ 'globalConfigPath' => __DIR__ . '/config/global.config.php', 'discordOptions' => [ 'intents' => Intents::getAllIntents(), 'token' => '****', 'dnsConfig' => '1.1.1.1', ], 'overrideComponents' => [ 'name' => Component::class, ], 'discordEvents' => [ 'ready' => Event::class, ] ]); Bootstrap::init($configurator)->run();
global.config
<?php return [ 'databaseParams' => [ 'dbType' => 'pdo_mysql', 'dbHost' => 'localhost', 'dbName' => 'bot', 'dbLogin' => 'user', 'dbPassword' => 'password' ], 'symbolCommand' => '~', 'useNewCommandSystem' => true, 'install.dir' => __DIR__ . '/migrations/install/', ];