PHPackages                             zinntikumugai/discord-php - 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. [API Development](/categories/api)
4. /
5. zinntikumugai/discord-php

AbandonedArchivedLibrary[API Development](/categories/api)

zinntikumugai/discord-php
=========================

An unofficial API to interact with the voice and text service Discord.

v4.0.4(8y ago)0161[1 PRs](https://github.com/zinntikumugai/DiscordPHP/pulls)MITPHPPHP ^5.6|^7.0

Since Aug 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zinntikumugai/DiscordPHP)[ Packagist](https://packagist.org/packages/zinntikumugai/discord-php)[ RSS](/packages/zinntikumugai-discord-php/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (13)Versions (29)Used By (0)

DiscordPHP for the service I want to make
=========================================

[](#discordphp-for-the-service-i-want-to-make)

There is a possibility that it does not meet the purpose when you use it What to do

- Localizing into Japanese
- [Samurai](https://github.com/acid-chicken/Samurai) like UI

**Please wait a moment**

DiscordPHP
==========

[](#discordphp)

A wrapper for the official [Discord](https://discordapp.com) REST, gateway and voice APIs.

FAQ
---

[](#faq)

1. Can I run DiscordPHP on a webserver (e.g. Apache, nginx)?
    - No, DiscordPHP will only run in CLI. If you want to have an interface for your bot you can integrate [react/http](https://github.com/ReactPHP/http) with your bot and run it through CLI.

Getting Started
---------------

[](#getting-started)

### Installing DiscordPHP

[](#installing-discordphp)

DiscordPHP is installed using [Composer](https://getcomposer.org). Make sure you have installed Composer and are used to how it operates. We require a minimum PHP version of PHP 5.5.9, however it is reccomended that you use PHP 7. PHP 5.x support **will** be removed in the future.

This library has not been tested with HHVM.

1. Run `composer require team-reflex/discord-php`. This will install the lastest release.
    - If you would like, you can also install the development branch by running `composer require team-reflex/discord-php dev-develop`.
2. Include the Composer autoload file at the top of your main file:
    - `include __DIR__.'/vendor/autoload.php';`
3. Make a bot!

### Basic Example

[](#basic-example)

```
