stable-cz / cdn-client
Basic PHP CDN Client for Stable.cz customers
0.9.4
2020-03-05 13:06 UTC
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2025-07-06 01:17:04 UTC
README
Stable CDN Client
- Class documentation: http://cdn.stable.cz/docs/cdn-client/html/classes/Stable_Cdn_Client.html
- Basic examples:
php example/example-short.php YOUR_API_KEY
- Another basic examples:
php example/example.php YOUR_API_KEY
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');