rmts/laravel-akamai
最新稳定版本:v6.0
Composer 安装命令:
composer create-project rmts/laravel-akamai
包简介
Simple AKAMAI API integration for Laravel
关键字:
README 文档
README
A simple AKAMAI API integration for Laravel
Services available so far:
- Purge by URL
Installation / Setup
composer require rmts/laravel-akamai
php artisan vendor:publish --provider="LaravelAkamai\\LaravelAkamaiServiceProvider"
Adapt in your .env: Find this in your AKAMI account
AKAMAI_URL=XYZ.purge.akamaiapis.net AKAMAI_CLIENT_TOKEN=<client-token> AKAMAI_ACCESS_TOKEN=<access-token> AKAMAI_SECRET=<client-secret> Usage
Purge by URL
Using the Facade
use LaravelAkamai\Akamai; /** PurgeUrlResponse $response **/ $response = Akamai::purgeUrl('http://my-asset.url'); if ($response->success) { Log::info("Success"); } else { Log::warning("Failed to purge from CDN: {$response->message}"); } Testing
Run the tests with:
composer test 统计信息
- 总下载量: 4.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04