burnthebook/craft3-livebuzz
Composer 安装命令:
composer require burnthebook/craft3-livebuzz
包简介
Pulls Exhibitors from the the LiveBuzz API to a website, it also updates and removes Exhibitors.
README 文档
README
This plugin will pull in Exhibitors from the the LiveBuzz API to a website, it also updates and removes Exhibitors.
The AutoSync feature will keep your site in sync with Livebuzz by updating every 15 minutes. There's also the option to sync manually with the click of a button.
The Livebuzz section in the Control Panel lets you browse all Exhibitors that have been imported into the site.
Twig extension allows for easy integration of Exhibitors into your templates.
NOTE: This is not an official Livebuzz plugin.
Requirements
This plugin requires:
- Craft CMS 3.0.0-RC1 or later;
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require burnthebook/craft3-livebuzz -
In the Control Panel, go to Settings → Plugins and click the "Install" button for Livebuzz.
Configuring Livebuzz
In the Control Panel, go to Settings → Livebuzz and enter the URL of your Livebuzz JSON API feed for Exhibitors - including the Campaign identifier.
Also in Settings → Livebuzz you should enter the Bearer used to authenticate your access to the Livebuzz API.
Enable AutoSync or, for advanced users, create a cron job on your server. See Syncing.
If using AutoSync, note that the initial sync will happen 15 minutes after enabling AutoSync.
To trigger the sync manually, go in Control Panel → Livebuzz and click the "Sync Now" button.
Exhibitors
{% set exhibitors = craft().livebuzz.exhibitors().all() %}
{% for exhibitor in exhibitors %}
{{ exhibitor.companyName }}
{% endfor %}
Parameters
craft().livebuzz.exhibitors() returns a query object that supports Craft's standard query parameters for ordering, sorting, limiting, as well as the following new parameters:
Properties
Exhibitor elements have the following properties:
-
id- Craft's Exhibitor ID. Note this is different from Livebuzz's Exhibitor ID. -
identifier- Livebuzz's Exhibitor ID. -
companyName- Exhibitor's company name. -
logo- Exhibitor's logo as a relative path. -
description- Exhibitor's biography. -
telephone- Exhibitor's telephone number in international format. -
emailAddress- Exhibitor's email address. -
websiteUrl- Exhibitor's website URL. -
stands- An array of stand locations assigned to this Exhibitor with the following structure:[ 'E09', 'A1', 'B10' ] -
addresses- An array of addresses for this Exhibitor with the following structure:[ { "line_1": "First line", "line_2": "The second line", "line_3": "The third line", "city": "Derby", "county": "Derbyshire", "region": "West Midlands", "country": "GB" }, { "line_1": "1600 Amphitheatre Pkwy", "line_2": "Mountain View", "line_3": "94043", "city": "", "county": "", "region": "CA", "country": "USA" } ] -
socialMediaChannels- An array of social media channels for this Exhibitor with the following structure:[ { "type": "instagram", "url": "https://www.instagram.com/" }, { "type": "website", "url": "https://www.example.com/" }, { "type": "facebook", "url": "https://www.facebook.com/" } ]
Syncing
The plugin comes with an AutoSync option which will automatically sync from the JSON API feed every 15 minutes or so via a pseudo cron job.
For more robust syncing, you can disable Auto Sync in the plugin settings and trigger it from a proper server cron job using the following Craft console command:
craft livebuzz/feed/sync
Brought to you by Burnthebook
burnthebook/craft3-livebuzz 适用场景与选型建议
burnthebook/craft3-livebuzz 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 50 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「Craft」 「livebuzz」 「craftcms」 「craft-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 burnthebook/craft3-livebuzz 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 burnthebook/craft3-livebuzz 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 burnthebook/craft3-livebuzz 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
LiveBuzz Control SDK
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Integrate with Snipcart.
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-03