Download the PHP package ricardofontanelli/laravel-telegram without Composer

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

LaravelTelegram

A simple and lightweight Laravel 4.2 and Laravel 5.* wrapper to interact with Telegram Bot.

Get Started:

Installation

1) The Laravel Telegram Service Provider can be installed via ...

or Composer by requiring the ricardofontanelli/laravel-telegram package in your project's composer.json

Then run a composer update

2) To use the Laravel Telegram Service Provider, you must register the provider when bootstrapping your application. If you are using Laravel >= 5.5, the package supports Automatic Package Discovery, skip to the step 3.

In Laravel find the providers key in your config/app.php and register the Laravel Telegram Service Provider.

Find the aliases key in your config/app.php and add the Laravel Telegram facade alias.

3) After that, run the command above to publish the Telegram config file, you must provide your Telegram Bot credentials and chat room information.

Publishing the package

Now, you should publish the package to generate the config file, after that, edit the config file with your Telegram Bot credentials.

Laravel 4.2

The config file will be generate here:

Laravel 5.*

The config file will be generate here:

Send a message:

Now you can use it by and run:

The first value is the config key name of the chat/group id where the Bot will publicate the message, you can provide the chat/group id directly.

Get information about the Bot:

Get Bot update:

Other methods:

The class has use a magic method to call unsuported methods:

You can use the variable to send query parameters and define the HTTP method (according the Telegram Bot Api documentation).

Find more:

You can find more here (Telegram Bot API)[https://core.telegram.org/bots/api], but if you need to call a method that the class doesn't support, feel free to send a PR.


All versions of laravel-telegram with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.*|5.*
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 ricardofontanelli/laravel-telegram contains the following files

Loading the files please wait ....