matthiasott/craft-internetarchive
Composer 安装命令:
composer require matthiasott/craft-internetarchive
包简介
Craft CMS plugin that notifies the Internet Archive to archive entries on save.
README 文档
README
Plugin for Craft CMS that notifies the Internet Archive to archive entries on save.
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 matthiasott/craft-internetarchive -
In the Control Panel, go to Settings → Plugins and click the “Install” button for the Internet Archive plugin.
Features
Notify the Internet Archive of new and updated entries
The plugin pings the Internet Archive on every save of a published entry to archive the corresponding URL. It can then be accessed using the Internet Archive's Wayback Machine. More information on how to trigger an archival and why this is a good idea can be found on the IndieWeb Wiki.
Archive all live URLs at once
If you want to send the Internet Archive all URLs of your site at once, you can do so on the plugin's control panel section.
Manual archive trigger
On the Entries index page in the Control Panel, you can select one or more entries and choose "Send to Internet Archive" from the action menu to manually trigger an archive. This respects all the same checks as automatic archiving (entry must be live, enabled, and have a URL).
Per-entry archiving control
By default, all published entries are sent to the Internet Archive when saved. If you want more control, create a lightswitch field in Craft (e.g., named "Archive in Internet Archive") and add it to your entry types.
- Field handle:
archiveInInternetArchive(configurable in plugin settings) - Default behavior: Enabled — entries are archived unless you explicitly disable the field
- How to use: Add the field to your entry type's field layout, then toggle it off on specific entries to skip archiving
This is useful if you have entry types with pages that shouldn't be archived (e.g., landing pages, redirect entries, or internal tools).
Changelog
1.2.0
- Add "Send to Internet Archive" element action for manual triggers
1.1.0
- Add per-entry archiving control via lightswitch field
- Fix broken queue job that caused "Invalid job data" errors
- Only archive enabled entries
1.0.0
- First version for Craft 5
Roadmap
- Archive all URLs of links within an entry, too
- Store the archived Wayback URL in a field for linking back
- Add scheduling option to archive on a schedule instead of on every save
- Exclude certain URL patterns from archiving (e.g., /admin/, /api/)
- Track and display archive status (pending/success/failed) in the control panel
- Implement retry logic for failed archive attempts with exponential backoff
- Add custom user agent for better request identification
- Add batch size control to avoid rate limiting
- Create a logs viewer in the control panel to see archive history
Thank you!
Huge thanks to everyone involved in the Internet Archive project for saving our knowledge on the web and also to the IndieWeb community, especially Tantek Çelik.
License
Code released under the MIT license.
Author
Matthias Ott
mail@matthiasott.com
https://matthiasott.com
matthiasott/craft-internetarchive 适用场景与选型建议
matthiasott/craft-internetarchive 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 03 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 matthiasott/craft-internetarchive 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 matthiasott/craft-internetarchive 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2025-03-16