Download the PHP
package exan/fenrir without Composer
On this page you can find all versions of the php package
exan/fenrir. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor exan Package fenrir Short Description Discord API & WS wrapper License
MIT
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.
[![Fenrir Code Quality](https://github.com/dc-Ragnarok/Fenrir/actions/workflows/code-quality.yml/badge.svg)](https://github.com/dc-Ragnarok/Fenrir/actions/workflows/code-quality.yml)
[![Fenrir Unit Tests](https://github.com/dc-Ragnarok/Fenrir/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/dc-Ragnarok/Fenrir/actions/workflows/unit-tests.yml)
About
Fenrir is a mostly plain wrapper over Discords APIs/gateway.
There is no caching built in, this is for the user to implement themselves.
If you're looking for something thats easier to use, has caching OOTB, you could consider DiscordPHP.
Fenrir heavily relies on ReactPHP for async operations. Knowing the basics of async PHP is recommended before diving in.
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
Fenrir currently supports PHP 8.1 to 8.3.
Tests should pass nightly 8.4 builds, but this is not a supported usecase.
If you're using this in a Apache2/Nginx/etc webserver environment, you should probably limit yourself to only using Fenrir's 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!
Notice
The current underlying HTTP component is subject to change in the future.
While the accesible API for it will remain similar, you should try to refrain from using it manually in your application.
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 exan/fenrir contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.