b13/akamai
Composer 安装命令:
composer require b13/akamai
包简介
Akamai CDN Adapter for purging TYPO3 caches
README 文档
README
When TYPO3 is behind Akamai's EdgeGrid CDN, this extension is a perfect companion for you.
This extension hides the complexity for Akamai's EdgeGrid API to purge caches.
Installation
As EXT:akamai is using some PHP libraries, this extension is currently only useful when running TYPO3 in composer mode. You can install this extension by using composer:
composer req b13/akamai
Usage
By default, EXT:akamai ships with a akamai:purge CLI command to purge a content provider
group (CP) or a specific URL. TYPO3 is using the graceful "invalidate" endpoints.
It is possible to purge a single or multiple URLs
./vendor/bin/typo3 akamai:purge --url=https://example.com/page1 --url=https://example.com/page2
or purge a whole Content Provider by its CP code
./vendor/bin/typo3 akamai:purge --url=https://example.com/page1 --url=https://example.com/page2
EXT:akamai chooses the network by determining the TYPO3 Context and only uses the
production network if TYPO3 Context is set to Production. However, this can be overridden
by a --network=staging or --network=production setting.
Integration into TYPO3 Backend
EXT:akamai can be used in conjunction with TYPO3's Proxy Cache Manager Extension.
Using the Akamai Adapter for EXT:proxycachemanager flushes page caches directly when modifying a page. This is perfect if you're dealing with akamai configuration that not just caches your static assets but also your pages.
For this, ensure to set the class \B13\Akamai\Provider\AkamaiProxyProvider in
the settings of EXT:proxycachemanager.
Configuration
Credentials
Akamai uses a .edgerc credentials file, which currently
request to be in TYPO3's main directory (project path, also where
your composer file resides).
This file might look like this:
[default]
client_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
host = xxxxx.purge.akamaiapis.net
access_token = xxxxx
client_token = xxxxx
It is also possible to use Environment variables directly.
AKAMAI_DEFAULT_CLIENT_SECRET = xxxxx
AKAMAI_DEFAULT_HOST = xxxxx.purge.akamaiapis.net
AKAMAI_DEFAULT_ACCESS_TOKEN = xxxxx
AKAMAI_DEFAULT_CLIENT_TOKEN = xxxxx
Use the Extension setting configType to choose between the Environment
and the .edgerc mode.
Please note that the host never contains the URL scheme - no matter what configuration type you're choosing.
The default section can be configured as well, in case your installation has multiple endpoints at Akamai.
Using multiple sections / CDN endpoints in Site Configuration
It is possible to define the CP code by site when using the integration of
EXT:proxycachemanager. Ensure to set this in your TYPO3 site config.yaml:
settings:
cdn:
akamai_cpcode: "12345"
akamai_auth_section: "superbowl_campaign"
License
The extension is licensed under GPL v2+, same as the TYPO3 Core. For details see the LICENSE file in this repository.
Open Issues
If you find an issue, feel free to create an issue on GitHub or a pull request.
Credits
This extension was created by Benni Mack in 2020 for b13 GmbH.
Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.
b13/akamai 适用场景与选型建议
b13/akamai 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.13k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 05 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cache」 「cdn」 「typo3」 「purge」 「akamai」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 b13/akamai 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 b13/akamai 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 b13/akamai 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Set Links with a specific language parameter
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
Laravel 5 - Repositories to the database layer
An interactive tour through the TYPO3 backend.
Define your own css rule-sets for the TYPO3 CMS backend.
统计信息
- 总下载量: 1.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2020-05-01