Skip to content

PHP SDK for cache invalidation on Stackpath CDN

Notifications You must be signed in to change notification settings

sebaperez/Stackpath-PHP-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Stackpath-PHP-SDK

No official SDK for invalidate cache with Stackpath CDN

This SDK only works for invalidate a file in cache. This is a no official contribution.

Configuration

Configure in stackpath.php your Alias, Consumer Key and Consumer Secret.

Example

$site_id = 1234;
$stackpath = new stackpath($site_id);
if ($stackpath->deleteFile("/folder/myfile.txt")) {
	echo("Deleted");
} else {
	echo("There was an error");
}

About

PHP SDK for cache invalidation on Stackpath CDN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages