stable-cz/cdn-client

Basic PHP CDN Client for Stable.cz customers

0.9.4 2020-03-05 13:06 UTC

This package is auto-updated.

Last update: 2025-07-06 01:17:04 UTC


README

Stable CDN Client

Basic usage examples:
 // construct
 $client = new \Stable\Cdn\Client(YOUR_API_KEY);
 
 // create some local file
 file_put_contents('localfile', date('Y-m-d'));
 
 // upload file
 $client->upload('localfile', 'path/to/remotefile');
 
 // verify file exists
 $client->ls('path/to/remotefile');
 
 // list files in directory
 $client->ls('path/to');
 
 // delete remote file
 $client->delete('path/to/remotefile');