New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rmts/laravel-akamai

Simple AKAMAI API integration for Laravel
8,451 1
Install
composer require rmts/laravel-akamai
Latest Version:v6.0
PHP:>=8.2
Laravel:10 · 11 · 12
Older releases:5 – 8
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

luracast/restler

Restler is a simple and effective multi-format Web API Server framework written...

588,825 1,386
qbnk/restler

Fork of luracast/restler with own additions.

3,988
nasrulhazim/arc8-api

The Pre-Configured API Code Base.

9 3
fireguard/lumen-api

Basic API Implementing with Lumen.

4 2
serovvitaly/lumen-api

The Laravel Lumen Api Framework.

4 0

Version History

Version Released PHP Laravel License
v6.0 >=8.2 ^10.0|^11.0|^12.0 MIT
v5.0 >=8.2 ^10.0|^11.0 MIT
v4.0 >=8.2 ^10.0 MIT
v3.1 >=7.2 ^8.0 MIT
v3.0.1 >=7.2 ^8.0 MIT