rmts/laravel-akamai
Simple AKAMAI API integration for Laravel
8,244
1
| Install | |
|---|---|
composer require rmts/laravel-akamai |
|
| Latest Version: | v6.0 |
| PHP: | >=8.2 |
| License: | MIT |
| Last Updated: | May 31, 2026 |
| Links: | GitHub · Packagist |
Maintainer: patriziotomato
laravel-akamai
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
Related Packages
hiddeco/laravel-transip
Laravel TransIP is a bridge for the TransIP SOAP client and Laravel 5.
4,409
9
lanin/laravel-api-exceptions
All in one solution for exception for JSON REST APIs on Laravel and Lumen.
105,718
40