recranet/craft-recranet-booking
Composer 安装命令:
composer require recranet/craft-recranet-booking
包简介
Synchronizes various Recranet Booking sources to Craft CMS
README 文档
README
Synchronizes various Recranet Booking sources to Craft CMS
Features
- Synchronizes facilities, accommodations, locality categories accommodation categories and package specification categories from Recranet Booking to Craft CMS.
- Supports custom fields for facilities, accommodation categories, locality categories and package specification categories.
- Generates an accommodation sitemap.xml route
- Stores the organization ID and 'reservation' page in the Craft CMS settings for easy access.
- Exposes accommodations in twig templates via the
craft.accommodations()variable.
Requirements
This plugin requires Craft CMS 5.7.0 or later, and PHP 8.2 or later.
Installation
composer require recranet/craft-recranet-booking && php craft plugin/install _recranet-booking
Update
Update by performing:
ddev composer update recranet/craft-recranet-booking ddev php craft migrate/up --plugin=_recranet-booking ddev php craft clear-caches/all
Setup
Create a new file inside config/ called _recranet-booking.php. Below values can be overridden in this file.
<?php return [ '*' => [ 'showCpNav' => true, ], 'dev' => [ 'showCpNav' => true, ], 'staging' => [ 'showCpNav' => false, ], 'production' => [ 'showCpNav' => false, ], ];
Commands
You can run the following command to synchronize the different sources:
ddev php craft _recranet-booking/import ddev php craft _recranet-booking/import/facilities ddev php craft _recranet-booking/import/accommodations ddev php craft _recranet-booking/import/locality-category ddev php craft _recranet-booking/import/accommodation-category ddev php craft _recranet-booking/import/package-specification-category
You can run the following command to delete the different sources:
ddev php craft _recranet-booking/delete ddev php craft _recranet-booking/delete/facilities ddev php craft _recranet-booking/delete/accommodations ddev php craft _recranet-booking/delete/locality-category ddev php craft _recranet-booking/delete/accommodation-category ddev php craft _recranet-booking/delete/package-specification-category
Variables
You can run the use the following variables in your templates to access the data:
This will output the organizationId linked to the current site, or null when no organization is linked to the current site.
{{ craft.recranetBooking.organizationId }}
recranet/craft-recranet-booking 适用场景与选型建议
recranet/craft-recranet-booking 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 303 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 recranet/craft-recranet-booking 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 recranet/craft-recranet-booking 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 303
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-06-11