Download the PHP package gjae/laravel-telegram-log without Composer

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

Installation and setup

Installing dependency via composer

Once you have installed this package, execute the following command at laravel command prompt:

It will create a file named . It has the basic config. Now you will need to add a "chat ID" and a "bot api token" in this file.

Quickstarter with telegram bots

Creation of new bots is managed by the BotFather.

Search @BotFather on telegram or click here: botfhater.

Now, create a new bot by typing the command /newbot into the BotFather chat box or choose it by clicking on the square button at the rigth corner of the chat box. Then, select "/newbot". The name of your new bot must have the suffix "Bot", for example:"laravel_log_bot", "LaravelBot". The BotFather will ask you for a name and a username for your new bot (both of them must have the suffix "Bot").

finally, the @BotFather will send you a message like this:

Done! Congratulations on your new bot. You will find it at t.me/[YourUsernameBot]. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this. Use this token to access the HTTP API: [TOKEN] Keep your token secure and store it safely, it can be used by anyone to control your bot. For a description of the Bot API, see this page: https://core.telegram.org/bots/api

GREAT, you have already created your first telegram bot.

Next, copy the token (the one that has the format XXXX:YYYYYYYY) and save it in a safe place.

Usage

Open your ".env file" and look for the following lines and paste the Token and Telegram Id (the ones you had copied before) as values for the following variables:

  1. __TELEGRAM_BOT_ACCESS_TOKEN= paste here your SECRET BOT API TOKEN__ .,
  2. TELEGRAM_CHAT_ID= paste here your chat ID

NOTE 1: Sometimes the ID value may have a "-" mark at the beginning; you should copy this symbol too.

NOTE 2: IF THE ID VALUE HAS ANY SYMBOL AT THE BEGINING, PUT THE ID VALUE INSIDE QUOTATION MARKS. Example: "-121412312"

next open the config/logging.php file, look for the "channels" array and overwrite it like this:

How to get the chat_id value

You can make a request to the url: [https://api.telegram.org/bot[YourBotAccessToken]/getUpdates] (https://api.telegram.org/bot[YourBotAccessToken]/getUpdates) (change [YourBotAccessToken] by the "bot token" you have just gotten). Now you'll get a json like this:

YOU'RE DONE!


All versions of laravel-telegram-log with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version >=5.4
illuminate/database Version >=5.4
guzzlehttp/guzzle Version >=5.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 gjae/laravel-telegram-log contains the following files

Loading the files please wait ....