Download the PHP package gordonzero/monolog-telegram without Composer

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

Laravel 5.6 Monolog Telegram Notification Handler.

This package will sends an message Via Telegram to a spedified group or user speicifed by the LOG_TELEGRAM_CHAT_ID.

Installation

composer require gordonzero/monolog-telegram

Open up config/logging.php and find the channels key. Add the following channel to the list.

'telegram' => [
    'driver' => 'custom',
    'via'=> \Logger\TelegramLogger::class,
    'botKey' => env('LOG_TELEGRAM_BOT_ID'),
    'chatId' => env('LOG_TELEGRAM_CHAT_ID'),
],

Add the following information to your .env file. Your LOG_TELEGRAM_BOT_ID is for the your bot key and LOG_TELEGRAM_CHAT_ID is the chat ID for a telegram user or channel.

LOG_TELEGRAM_BOT_ID=123456789:ABCDEFGHIJKLMNOPQUSTUFWXYZabcdefghi
LOG_TELEGRAM_CHAT_ID=12345678

This package contains a blank Service Provider. This is only to let you know that the package is detected and working properly.

Side Notes

Currently it does not have any built in methods for figuring out what your CHAT_ID is. This may come in a future version or you can check around for posts that tell you how to find this ID number.


All versions of monolog-telegram with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
irazasyed/telegram-bot-sdk Version ^3.0
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 gordonzero/monolog-telegram contains the following files

Loading the files please wait ....