toteph42/filesync
Composer 安装命令:
composer require toteph42/filesync
包简介
Extended file synchronisation bundle with user e-mail notification for Contao Open Source CMS
README 文档
README
This small extension replaces to Contao internal contao:filesync command by toteph42:filesync.
On top of the file synchronization, e-Mail notifications were send to users if any file has changed or is new.
Installation
Via composer
composer require toteph42/filesync
Via contao-manager
Search for totep42/filesync bundle and add it to your extensions.
After installing the contao-member-extension-bundle, you need to run a contao install.
Usage
- Define
Member groupsexactly as the folder names were defined (e.g. member groupGroup1). - Assign this group to a member.
- Create a directory below
filesdirectory named like your group (e.g.files/Group1). - Then copy any files to the directory and call
vendor/contao-console toteph42:filesync.
Disable notification
- Uncheck checkbox
Notify user about changes in file systemin member definition (default=true).
Member configuration
If you want members to give the possibility to select whether they want notification or not in frontend:
- Create a frontend module
Personal data. - Select field
Notify user about changes in file systemasEditable fields. - Create an
Articleand include the module you just created.
Creating message to send
Now you need to create a Forms with the name of the group (e.g. member group Group1).
- Click on checkbox
Send form data via e-mailin section Send form data. - Enter the
senderaddress in fieldRecipient address(e.g.from@exaple.com). - Add your
Subject. - Select Data format
E-mail. - Save and close
- Add a content field with Field type
Explanation. - Enter your e-Mail in
Textfield. Use the placehoder[[files]]where you want the list of files to be inserted. - Save and close
Testing
To test, please go to your web directory and use the command
vendor/bin/contao-console toteph42:filesync
or for a specific php version e.g.
/opt/php8.3.24/bin/php vendor/bin/contao-console toteph42:filesync
Production
To start sending notification e-Mails, you need to edit your crontab using crontab -e and enter:
# Synchronize files
30 * * * * /opt/php8.3.13/bin/php [Path to your Contao installation]/vendor/bin/contao-console toteph42:filesync
Please enjoy!
If you enjoy my software, I would be happy to receive a donation.
toteph42/filesync 适用场景与选型建议
toteph42/filesync 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「file」 「email」 「notification」 「contao」 「e-mail」 「synchonisation」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 toteph42/filesync 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 toteph42/filesync 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 toteph42/filesync 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package makes it easy to send notifications via AfricasTalking with Laravel
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
Apple Push Notification & Feedback Provider
Throttle notifications on a per-channel basis
Laravel Media Popup to upload/view the files
Extensible library for building notifications and sending them via different delivery channels.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2025-01-01