Download the PHP package tempcord/framework without Composer
On this page you can find all versions of the php package tempcord/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tempcord/framework
More information about tempcord/framework
Files in tempcord/framework
Package framework
Short Description A modern, elegant PHP framework for building Discord bots with ease
License MIT
Homepage https://tempcord.dev
Informations about the package framework
Tempcord Framework
Description
Tempcord is a modern, elegant PHP framework designed specifically for building Discord bots with ease. Built on top of the powerful Tempest Console framework and Ragnarok Fenrir Discord library, Tempcord provides a clean, attribute-based approach to creating sophisticated Discord bots with minimal boilerplate code.
The framework leverages PHP 8.5+ features and modern development practices to deliver a robust foundation for Discord bot development, featuring automatic command registration, event handling, and seamless integration with Discord's API.
Getting Started: Use the
tempcord/tempcordboilerplate to quickly create new Discord bot applications. This repository contains the core framework - for building applications, usecomposer create-project tempcord/tempcord your-bot-name.
Features
- π Modern PHP 8.5+ - Leverages the latest PHP features and syntax
- π― Attribute-Based Commands - Define Discord commands using PHP attributes
- π‘ Event-Driven Architecture - Handle Discord events with clean, organized handlers
- π§ Auto-Discovery - Automatic command and event registration
- ποΈ Dependency Injection - Built-in container for clean architecture
- π Console Integration - Rich console output and logging capabilities
- π Extensible - Easy to extend with custom functionality
- π‘οΈ Type Safety - Full type hints and strict typing throughout
- π Logging Support - Comprehensive logging with multiple channels
- β‘ Performance Optimized - Efficient command and event handling
Installation
Prerequisites
- PHP 8.5 or higher
- Composer
- A Discord Bot Token (from Discord Developer Portal)
Step 1: Create New Application
Use the Tempcord application boilerplate to create a new Discord bot project:
Step 2: Configure Your Bot
Copy the example environment file and configure your bot:
Edit the .env file with your Discord bot credentials:
Step 3: Install Dependencies
Step 4: Create Your First Command
The boilerplate includes example commands. Create a new command in any folder, for example inside app/Commands/:
Usage
Running Your Bot
Use the built-in console commands to manage your bot:
Creating Commands
Commands are defined using the #[Command] attribute:
Handling Events
Create event handlers using the #[Event] attribute:
Command Options and Subcommands
Whether an option is required comes from whether its parameter has a default, so $user
above is required without saying so.
Documentation
See docs/ β guides for getting started, commands, autocomplete, events and translations, plus a reference generated from the source.
Run composer docs after changing the public API; the test suite fails if the committed
documentation no longer matches the code.
Contributing
We welcome contributions! Please see CONTRIBUTING.md for details on how to contribute to Tempcord.
Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/framework.git - Install dependencies:
composer install - Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run the test suite:
composer test - Commit your changes:
git commit -m 'Add amazing feature' - Push to your branch:
git push origin feature/amazing-feature - Open a Pull Request
Reporting Issues
When reporting issues, please include:
- PHP version
- Framework version
- Steps to reproduce
- Expected vs actual behavior
- Error messages or logs
Feature Requests
We're always looking for ways to improve Tempcord. Feel free to:
- Open an issue with the
enhancementlabel - Discuss your ideas in our community channels
- Submit a pull request with your implementation
Credits & Acknowledgements
Tempcord stands on the shoulders of excellent open-source projects. It does not bundle their source code β they are pulled in as Composer dependencies at install time, each under its own license β but the framework would not exist without them:
- Discord PHP by CyberWolf.Studio β the underlying Discord API/gateway library Tempcord builds upon; itself a maintained fork of Fenrir by RagnarΓΆk (MIT License).
- Tempest β the console, core, event-bus and logging foundation Tempcord integrates with (MIT License).
- ReactPHP β the async runtime powering the gateway connection (MIT License).
License
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ by CyberWolf.Studio team. using Tempest
For more information, visit our documentation or join our Discord community.
All versions of framework with dependencies
tempcord/discord-php Version ^1.6
tempest/console Version ^3.18
tempest/core Version ^3.18
tempest/database Version ^3.18
tempest/event-bus Version ^3.18
tempest/log Version ^3.18