Download the PHP package nozell/webhookapi without Composer

On this page you can find all versions of the php package nozell/webhookapi. 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 webhookapi

DiscordWebhookAPI


🎉 Join the BlockForDevs Discord Community! 🎉

👉 Click Here to Join Now! 👈


DiscordWebhookAPI  

A PocketMine-MP Virion to easily send messages via Discord Webhooks

Una Virion para PocketMine-MP para enviar mensajes fácilmente mediante Discord Webhooks


🎉 Installation / Instalación

Installation is easy. You may get a compiled .phar here or integrate the virion itself into your plugin.
La instalación es fácil. Puedes obtener un .phar compilado aquí o integrar directamente el virion en tu plugin.

This virion is purely object-oriented. To use it, you'll need to import the Webhook, Message, and optionally, the Embed object (if needed).
Esta API es completamente orientada a objetos. Para usarla, deberás importar los objetos Webhook, Message, y opcionalmente, Embed si es necesario.


🛠 Basic Usage / Uso básico

Import the classes / Importar las clases

To use this API in your code, you'll need to import the following classes:
Para usar esta API en tu código, necesitarás importar las siguientes clases:

Construct a Webhook object / Crear un objeto Webhook

You'll need the Webhook URL. For more information on how to create Discord webhooks, click here.
Necesitarás la URL del Webhook. Para más información sobre cómo crear webhooks en Discord, haz clic aquí.

Construct a Message object / Crear un objeto Message

You must create a new Message object for each message you want to send.
Deberás crear un nuevo objeto Message para cada mensaje que desees enviar.

Send the message / Enviar el mensaje

Now you can send the message using the send() method. This will schedule an AsyncTask to avoid blocking the main thread.
Ahora puedes enviar el mensaje usando el método send(). Esto programará una AsyncTask para evitar bloquear el hilo principal.


📦 Embeds

Before sending a message, you may want to add an embed. You can construct an Embed object and use Message->addEmbed() to include it.
Antes de enviar un mensaje, quizá quieras agregar un embed. Puedes construir un objeto Embed y usar Message->addEmbed() para incluirlo.

You can also add a footer:
También puedes añadir un pie de página:

Finally, add the embed to the message:
Finalmente, agrega el embed al mensaje:


Example Code / Código de ejemplo:


This API was made with ❤️ by CortexPE updated by Nozell. Enjoy!~ :3
Esta API fue hecha con ❤️ por CortexPE actualizado por Nozell. ¡Disfrútala!~ :3


All versions of webhookapi with dependencies

PHP Build Version
Package Version
Requires pocketmine/pocketmine-mp Version ^5.19
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 nozell/webhookapi contains the following files

Loading the files please wait ....