shopware/fastly-meta
Composer 安装命令:
composer require shopware/fastly-meta
包简介
A meta package providing recipes for Fastly
README 文档
README
A Composer meta package that streamlines the integration of Fastly as the CDN layer for Shopware. It automates the deployment and management of Fastly VCL (Varnish Configuration Language) snippets and ensures best-practice Shopware CDN cache handling in scalable, modern shop setups.
- Performance: Fastly caches HTTP responses at edge locations closest to your customers, reducing latency and load on your servers.
- Resource Savings: Cache hits at the edge reduce backend requests and lower cloud infrastructure demands.
- Modern Caching: Fastly replaces local Redis cache use for HTTP caching, resulting in more scalable and reliable storefront performance.
This is not an official Fastly project but a Shopware-specific implementation.
Install
composer require shopware/fastly-meta
Setup
-
Set required environment variables:
FASTLY_API_KEY— Your Fastly API keyFASTLY_SERVICE_ID— The Fastly Service ID
-
Integrate with your deployment process:
- If using Shopware Deployment Helper, the Fastly meta package will enable auto-deployment of Fastly VCL snippets.
-
Enable Fastly for your Shopware project:
- Push your updated code and configuration containing the meta package and Fastly env variables to your environment.
- Fastly CDN will be integrated for HTTP caching.
Usage
Once set up, VCL snippets are managed automatically during your deployment process. You can manage Fastly snippets manually with Deployment Helper CLI commands:
# List deployed VCL snippets ./vendor/bin/shopware-deployment-helper fastly:snippet:list # Remove a VCL snippet by name ./vendor/bin/shopware-deployment-helper fastly:snippet:remove
Related Documentation
More info is available at Shopware Fastly Integration Guide, Shopware Deployment Helper, and Shopware PaaS Fastly Setup.
shopware/fastly-meta 适用场景与选型建议
shopware/fastly-meta 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 32.99k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 09 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 shopware/fastly-meta 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 shopware/fastly-meta 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 32.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-26