Download the PHP package mk4u/larabot without Composer

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

LaraBot

Seamless integration of TGram the powerful PHP library for creating Telegram bots with the Laravel framework.

🚀 Features

📦 Installation

⚡ Quick Start

1. Install and Configure

This command will:

2. Configure your Bot

Add to your .env file:

3. Register default commands and callback functions

4. Configure Webhook

5. Create Your Commands

🛠 Available Commands

Command Description
php artisan tgram Install and configure TGram
php artisan tgram:register Register all commands and callbacks
php artisan tgram:hook:set <url> Set webhook URL
php artisan tgram:hook:delete Delete webhook
php artisan tgram:hook:info Get webhook info
php artisan tgram:hook:about Get bot info
php artisan tgram:poll <interval> Start long polling
php artisan tgram:command <name> Create new command
php artisan tgram:callback <name> <action> Create new callback handler
php artisan tgram:conversation <name> Create new conversation
php artisan tgram:handler <name> Create new handler
php artisan tgram:middleware <name> Create new middleware

⚙️ Settings

After installation, add to your .env:

Parameter descriptions:

🌐 Webhook Route

Add to your routes/api.php:

🔧 Dependency Injection

Type-hinting in Controllers

The Bot is registered as a singleton in Laravel's service container. You can inject it directly:

Using the Service Container

Note: Always use app('tgram') or app(Bot::class) instead of new Bot(...). The singleton handles Laravel cache integration automatically.

Using Facade (if needed)

Create a Facade in your Laravel app app/Facades/Bot.php:

Then use: Bot::sendMessage([...])

🎯 Usage Examples

Send a Message

Send with Keyboard

Answer Callback Query

📚 Requirements

🆘 Support

📄 License

MIT License - see the LICENSE file for details.


Need help? Open an issue on GitHub or consult the TGram documentation.


All versions of larabot with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
mk4u/tgram Version ^0.1
al3x5/laravel-psr16-cache Version ^1.0
illuminate/console Version ^13.0
illuminate/support Version ^13.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 mk4u/larabot contains the following files

Loading the files please wait ...