PHPackages                             tempcord/tempcord - 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. [Framework](/categories/framework)
4. /
5. tempcord/tempcord

ActiveProject[Framework](/categories/framework)

tempcord/tempcord
=================

A modern Discord bot framework for PHP built on top of Tempest

06PHPCI failing

Since Sep 12Pushed 9mo agoCompare

[ Source](https://github.com/Tempcord/tempcord)[ Packagist](https://packagist.org/packages/tempcord/tempcord)[ RSS](/packages/tempcord-tempcord/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Tempcord
========

[](#tempcord)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d0266bb50f44e361533480f8403a5c63b6822dad5b806d7f713b85d39f9134e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74656d70636f72642f74656d70636f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tempcord/tempcord)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f7396d44c590914725ecd21c0c4c14a1d2a93c208bf56c9b94cb6b603b5b819c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f74656d70636f72642f74656d70636f72642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/tempcord/tempcord/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/469c429b2f99e9ccf060958d5223839054f4624e0280cb853af97bf996cfff14/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f74656d70636f72642f74656d70636f72642f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/tempcord/tempcord/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5096c1f20070d3d432272eb49386c44830cc26d90f8826c5be7227535baab851/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74656d70636f72642f74656d70636f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tempcord/tempcord)

A modern Discord bot framework for PHP built on top of [Tempest](https://tempestphp.com). Tempcord provides a clean, expressive API for building Discord bots with PHP 8.2+.

Features
--------

[](#features)

- 🚀 **Modern PHP**: Built for PHP 8.2+ with full type safety
- ⚡ **Tempest Integration**: Leverages the powerful Tempest framework
- 🎯 **Discord API**: Full Discord API v10 support
- 🔧 **Developer Friendly**: Intuitive API with excellent IDE support
- 📦 **Composer Ready**: Easy installation and dependency management
- 🧪 **Testing**: Built-in testing support with PHPUnit and Pest
- 📚 **Well Documented**: Comprehensive documentation and examples

Installation
------------

[](#installation)

You can create a new Tempcord project using Composer:

```
composer create-project tempcord/tempcord my-discord-bot
cd my-discord-bot
```

Or install it in an existing project:

```
composer require tempcord/tempcord
```

Quick Start
-----------

[](#quick-start)

### 1. Environment Setup

[](#1-environment-setup)

Copy the example environment file and configure your Discord bot token:

```
cp .env.example .env
```

Edit `.env` and add your Discord bot token:

```
DISCORD_TOKEN=your_bot_token_here
```

### 2. Create Your First Command

[](#2-create-your-first-command)

Create a simple ping command in `app/Commands/PingCommand.php`:

```
