artyomnar/lead-form-provider
Composer 安装命令:
composer require artyomnar/lead-form-provider
包简介
Takes simple lead form from any web page and provide it into telegram
README 文档
README
Takes simple lead form from any web page and provide it into telegram. Lead form must not contain any files.
Installation
The preferred way to install this extension is through composer.
Either run
composer require artyomnar/lead-form-provider
or add
"artyomnar/lead-form-provider": "*"
to the require section of your composer.json.
Usage
$leadForm = $_POST['leadForm'];
$env = App::getEnvirenment();
$botToken = 'xxxxxxxxxxxxxxxx';
$chatId = '@myChannel';
$success = LeadFromProvider\LeadFromHandler::send($leadForm, $env, $botToken, $chatId);
return $success ? 'Form accepted successfully' : 'Error, try later';
统计信息
- 总下载量: 208
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-20