PHPackages                             commandstring/dphp-bot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. commandstring/dphp-bot

ActiveProject[Utility &amp; Helpers](/categories/utility)

commandstring/dphp-bot
======================

An unofficial way to structure a DPHP Bot

v7.0.3(2y ago)13285[1 issues](https://github.com/CommandString/DiscordPHP-Bot-Template/issues)MITPHPPHP &gt;=8.1

Since Nov 21Pushed 2y ago2 watchersCompare

[ Source](https://github.com/CommandString/DiscordPHP-Bot-Template)[ Packagist](https://packagist.org/packages/commandstring/dphp-bot)[ RSS](/packages/commandstring-dphp-bot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (24)Used By (0)

DiscordPHP Bot Template
=======================

[](#discordphp-bot-template)

An unofficial way to structure a discordPHP bot.

Table of Contents
=================

[](#table-of-contents)

- [Installation](#installation)
- [Important Resources](#important-resources)
- [Configuration](#configuration)
- [Slash Commands](#slash-commands)
- [Events](#events)
- [Disabling Commands and Events](#disabling-commands-and-events)
- [Extending The Template](#extending-the-template)
    - [Bootstrap Sequence](#bootstrap-sequence)
    - [Environment Variables](#environment-variables)

Installation
============

[](#installation)

```
composer create-project commandstring/dphp-bot

```

Important Resources
===================

[](#important-resources)

[DiscordPHP Class Reference](https://discord-php.github.io/DiscordPHP/guide/)

[DiscordPHP Documentation](https://discord-php.github.io/DiscordPHP/)

[DiscordPHP Discord Server](https://discord.gg/kM7wrJUYU9)*Only ask questions relevant to DiscordPHP's own wrapper, not on how to use this.*

[Developer Hub](https://discord.gg/TgrcSkuDtQ) *Issues about this template can be asked here*

Configuration
=============

[](#configuration)

Copy the `.env.example` file to `.env` and add your bot token.

Slash Commands
==============

[](#slash-commands)

Create a class that implements `Core\Commands\CommandHandler` and attach the `Core\Commands\Command` attribute to it.

```
