Download the PHP package kiwilan/php-notifier without Composer

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

PHP Notifier

Banner with british letter box picture in background and Notifier title

php version downloads license tests codecov

PHP Notifier is a package to send mails or notifications for Discord or Slack.

[!IMPORTANT] This package does not support push notifications or SMS (if you interested, a PR is welcome).

Installation

You can install the package via composer:

[!NOTE] For Laravel, you can use kiwilan/notifier-laravel package.

Usage

This package offer a support for Discord and Slack webhooks, and emails with symfony/mailer.

Discord

You can send simple message, with user and avatar. Default user and avatar will be webhook's name and avatar.

You can also send rich embeds.

Mail

Mail use symfony/mailer to send emails.

[!NOTE] If html is not set, message will be used as HTML content. And if html is set but not message, html will be used as plain text content with strip_tags method.

Multiple recipients can be added with to method.

You can add attachments with addAttachment method.

Slack

You can send simple message.

You can also send attachments.

HTTP

You can use http method to send HTTP request.

Client

HTTP requests use native stream context to send data, curl and guzzle can be used as option (default is stream).

[!WARNING] If you use guzzle, you need to install guzzlehttp/guzzle package.

To know if request is successful, you can use isSuccess method.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of php-notifier with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
symfony/mailer Version ^6.4 || ^7
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 kiwilan/php-notifier contains the following files

Loading the files please wait ....