Download the PHP package fitratech/sylius-facebook-messenger-plugin without Composer
On this page you can find all versions of the php package fitratech/sylius-facebook-messenger-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fitratech/sylius-facebook-messenger-plugin
More information about fitratech/sylius-facebook-messenger-plugin
Files in fitratech/sylius-facebook-messenger-plugin
Package sylius-facebook-messenger-plugin
Short Description A plugin to integrate facebook messenger chat box in Sylius.
License MIT
Informations about the package sylius-facebook-messenger-plugin
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 :
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`
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