fitratech/sylius-facebook-messenger-plugin
最新稳定版本:v0.1.3
Composer 安装命令:
composer require fitratech/sylius-facebook-messenger-plugin
包简介
A plugin to integrate facebook messenger chat box in Sylius.
README 文档
README
Facebook Messenger
A facebook messenger plugin to embed the chat box for Sylius.
Features
enable the chat box & set the page id from the back office
inject the chat box directly via template event
Installation
Require the plugin :
composer require fitratech/sylius-facebook-messenger
If you are using Symfony Flex skip the bundles.php modification.
Modify config/bundles.php to add this line at the end :
FitraTech\SyliusFacebookMessengerPlugin\FitraTechSyliusFacebookMessengerPlugin::class => ['all' => true],
Usage
-
Your
Channelentity need to implement theFitraTech\SyliusFacebookMessengerPlugin\Model\ChannelInterfaceinterface and use theFitraTech\SyliusFacebookMessengerPlugin\Model\ChannelTraittrait. -
You need to run a diff of your doctrine's migrations:
bin/console doctrine:migrations:diff. Don't forget to run it! (bin/console doctrine:migrations:migrate) -
Override
SyliusAdminBundle/Channel/_form.html.twig(if you are not familiar with template overriding check the official doc) and include@FitraTechSyliusFacebookMessengerPlugin/Channel/form.html.twig<div class="ui hidden divider"></div> {% include '@FitraTechSyliusFacebookMessengerPlugin/Channel/form.html.twig' %}
Front customization
You can override the chat box templates in your theme (src/FitraTechSyliusFacebookMessengerPlugin/Resources/views/embed.html.twig)
Local Development
Facebook Messenger chat box require a fully qualified domain name (FQDN) localhost & ip doesn't work, you need to setup a local domain if you use symfony cli follow the official doc and or this blog post
统计信息
- 总下载量: 909
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-22


