Download the PHP package cyberwolf-studio/discord-php without Composer

On this page you can find all versions of the php package cyberwolf-studio/discord-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package discord-php

Discord PHP

PHP Discord Interface — API & Gateway wrapper.

[![Code Quality](https://github.com/CyberWolf-Studio/discord-php/actions/workflows/code-quality.yml/badge.svg)](https://github.com/CyberWolf-Studio/discord-php/actions/workflows/code-quality.yml) [![Unit Tests](https://github.com/CyberWolf-Studio/discord-php/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/CyberWolf-Studio/discord-php/actions/workflows/unit-tests.yml)

About

Discord PHP is a mostly plain wrapper over Discord's APIs/gateway. There is no caching built in; this is for the user to implement themselves.

It heavily relies on ReactPHP for async operations. Knowing the basics of async PHP is recommended before diving in.

Discord PHP is a rebranded, maintained fork of Fenrir by Ragnarök. See Credits below.

Install

Example bot

REST-only example

(Note: going with REST-only means you do NOT receive any events and your bot will appear offline)

For more examples, check out the examples directory.

Support

Discord PHP currently supports PHP 8.5+. Tests should pass on nightly builds of newer versions, but this is not a supported usecase.

Note: Bugfixes/features will not be backported to older versions. Older versions are as-is.

If you're using this in an Apache2/Nginx/etc webserver environment, you should probably limit yourself to only using the REST capabilities. These environments typically don't allow long-running processes.

32-bit is not supported, though no hard limit is in place.

Contributing

Contributions are welcome. You can look for @todo to find something that requires attention. Please make sure to write tests where possible & make sure your code matches the phpcs configuration. Thanks!

Credits

Discord PHP is a fork of Fenrir, originally created by Ragnarök and released under the MIT License. All original copyright is retained in LICENSE. Huge thanks to the original authors and contributors for the foundation this project is built on.

Notice

The current underlying HTTP component is subject to change in the future. While the accessible API for it will remain similar, you should try to refrain from using it manually in your application.

License

Released under the MIT License. See LICENSE for the full text, including the original Fenrir copyright.


All versions of discord-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
react/event-loop Version ^1.3.0
evenement/evenement Version ^3.0.0
nesbot/carbon Version ^3.0
discord-php/http Version ^v10.3.0
ralouphie/mimey Version ^1.0
react/async Version ^4.0.0
exan/eventer Version ^1.0.3
exan/reactphp-retrier Version ^2.0
react/promise Version ^3
ratchet/pawl Version ^0.4.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cyberwolf-studio/discord-php contains the following files

Loading the files please wait ...