@@ -6,29 +6,36 @@ BunnyCDN) pull, video streaming, DNS and storage zones [API](https://docs.bunny.
6
6
This class whilst having a main focus on storage zone interaction includes pull zone features. Combining API with FTP,
7
7
managing and using BunnyNet storage zones just got easier.
8
8
9
- [ ![ Generic badge] ( https://img.shields.io/badge/version-1.9-blue.svg )] ( )
10
- [ ![ Generic badge] ( https://img.shields.io/badge/PHP-8.1 -purple.svg )] ( )
9
+ [ ![ Generic badge] ( https://img.shields.io/badge/version-1.9.2 -blue.svg )] ( )
10
+ [ ![ Generic badge] ( https://img.shields.io/badge/PHP-8.2 -purple.svg )] ( )
11
11
12
- ### 1.9 changes
13
- * Updated project to have separate class files for each handler (Pull, Storage, Stream and DNS)
14
- * Added class ` BunnyAPIPull ` for pullzone interaction
15
- * Added class ` BunnyAPIStorage ` for storage interaction
16
- * Added class ` BunnyAPIStream ` for video stream interaction
17
- * Added class ` BunnyAPIDNS ` for DNS interaction
12
+ ## Index
13
+ * [ Features] ( #features )
14
+ * [ Installing & usage] ( #installing )
15
+ * [ Pullzone] ( #pullzone )
16
+ * [ Storage] ( #storage )
17
+ * [ Video streaming] ( #video )
18
+ * [ DNS] ( )
19
+ * [ Misc] ( )
20
+
21
+ ### 1.9.2 changes
22
+ * Updated project to be PHP version 8.2 as a minimum
18
23
19
24
### TODO
20
25
* Sort (features) and index the readme
21
- * Create separate example files for each (pull, storage, video/stream and DNS)
22
26
23
27
### Requirements
24
28
29
+ * PHP 8.2
30
+
25
31
For Pull zone, billing and statistics API interaction you will need your BunnyNet API key, this is found in your
26
32
dashboard in the My Account section.
27
33
28
34
If you want to interact with storage zones you will need your BunnyCDN API key set and the name of the storage zone.
29
35
30
36
You can get this with ``` listStorageZones() ``` as it returns all the storage zone data/info for the account.
31
37
38
+ <span id =" features " ></span >
32
39
## Features & abilities
33
40
34
41
* List storage zones
@@ -71,6 +78,7 @@ You can get this with ```listStorageZones()``` as it returns all the storage zon
71
78
* List pull zone HTTP access logs
72
79
* Calculate costs
73
80
81
+ <span id =" installing " ></span >
74
82
## Usage
75
83
76
84
Install with composer:
@@ -111,7 +119,8 @@ $bunny->apiKey('XXXX-XXXX-XXXX');//Bunny api key
111
119
112
120
---
113
121
114
- ### Storage zone interaction
122
+ <span id =" storage " ></span >
123
+ ### Storage zone interaction
115
124
116
125
``` php
117
126
require __DIR__ . '/vendor/autoload.php';
@@ -374,7 +383,7 @@ $bunny->listAll($location);
374
383
returns ` array `
375
384
376
385
---
377
-
386
+ < span id = " pullzone " ></ span >
378
387
List all pull zones and data
379
388
380
389
``` php
@@ -610,7 +619,7 @@ $bunny->closeConnection();
610
619
```
611
620
612
621
---
613
-
622
+ < span id = " video " ></ span >
614
623
### Video streaming zone interaction
615
624
616
625
``` php
0 commit comments