Download the PHP package deepeloper/tunneled-webhooks without Composer
On this page you can find all versions of the php package deepeloper/tunneled-webhooks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deepeloper/tunneled-webhooks
More information about deepeloper/tunneled-webhooks
Files in deepeloper/tunneled-webhooks
Package tunneled-webhooks
Short Description Tunneled Webhooks
License MIT
Homepage https://github.com/deepeloper/tunneled-webhooks
Informations about the package tunneled-webhooks
Tunneled Webhooks
Runs tunneling service and registers temporary webhooks for workstation having no white IP by one command /path/to/php bin/run.php /path/to/config.php
.
- Implemented tunneling services: ngrok;
- Implemented webhooks connectors: Telegram;
- Implemented bots: Windbag.
You can add your own tunneling services, register and handle your own webhooks.
Compatibility
[]()
Installation
composer require deepeloper/tunneled-webhooks
Tunneling services
Download ngrok (and/or other tunneling services), sign up in service, get auth token and run service once /path/to/ngrok authtoken %YOUR_NGROCK_AUTH_TOKEN%
.
Webhooks
Register Telegram bot and receive bot auth token.
Configuring local web server
- nginx
Add *.ngrok.io subdomains:
and restart nginx.
- Apache
According to ngrok docs in own config modify
«service/command» value as /path/to/ngrok http --host-header=%LOCAL_HOST_NAME% 80
.
Application config
Copy «config.skeleton.php» to your own config file and put ngrok path & Telegram token to the new file:
Usage
Run tunneling service and bot
vendor/bin/tunneled-webhooks /path/to/config.php
Tunneling service will be started, Telegram webhook will be registered, and you could to start conversation with Telegram bot.
Run bot from CLI
vendor/bin/bot.windbag
All versions of tunneled-webhooks with dependencies
ext-json Version *
irazasyed/telegram-bot-sdk Version ^3.13
jfcherng/php-color-output Version *