@@ -6,39 +6,19 @@ 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.8 -blue.svg )] ( )
9
+ [ ![ Generic badge] ( https://img.shields.io/badge/version-1.9 -blue.svg )] ( )
10
10
[ ![ Generic badge] ( https://img.shields.io/badge/PHP-8.1-purple.svg )] ( )
11
11
12
- ### 1.8 changes
13
- * Added DNS zone interaction
14
- * Added ` dns_example.php ` file
15
- * Added getStreamCollectionSize function
16
- * Added getVideoStatistics function
17
- * Added getVideoHeatmap function
18
- * Added reEncodeVideo function
19
- * Added fetchVideo function
20
- * Added getCountries function
21
- * Added getRegions function
22
- * Added getAbuseCases function
23
- * Added checkAbuseCase function
24
- * Added getSupportTickets function
25
- * Added getSupportTicketDetails function
26
- * Added closeSupportTicket function
27
- * Added createSupportTicket function
28
- * Updated APIcall function (bool $storage_call replaced with string $url_type)
29
- * Updated functions that use APIcall to use new $url_type parameter
30
- * Updated listPullZones function
31
- * Updated getStatistics function
32
- * Updated findStorageZoneAccessKey function return type
33
- * Updated getVideoCollections function
34
- * Updated API_URL and VIDEO_STREAM_URL const strings
35
- * Removed boolToInt function
36
- * Removed jsonHeader function
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
37
18
38
19
### TODO
39
20
* Sort (features) and index the readme
40
21
* Create separate example files for each (pull, storage, video/stream and DNS)
41
- * Create separate classes and src files for each (pull, storage, video/stream and DNS)
42
22
43
23
### Requirements
44
24
@@ -104,9 +84,9 @@ Use like:
104
84
``` php
105
85
require __DIR__ . '/vendor/autoload.php';
106
86
107
- use Corbpie\BunnyCdn\BunnyAPI ;
87
+ use Corbpie\BunnyCdn\BunnyAPIPull ;
108
88
109
- $bunny = new bunnyAPI ();//Initiate the class
89
+ $bunny = new BunnyAPIPull ();//Initiate the class
110
90
111
91
echo $bunny->listPullZones();
112
92
```
@@ -131,6 +111,18 @@ $bunny->apiKey('XXXX-XXXX-XXXX');//Bunny api key
131
111
132
112
---
133
113
114
+ ### Storage zone interaction
115
+
116
+ ``` php
117
+ require __DIR__ . '/vendor/autoload.php';
118
+
119
+ use Corbpie\BunnyCdn\BunnyAPIStorage;
120
+
121
+ $bunny = new BunnyAPIStorage();
122
+ ```
123
+
124
+ ---
125
+
134
126
Storage zone name and access key for storage zone interaction (** not needed if just using pull zone functions** )
135
127
136
128
Set ``` $access_key = '' ``` to obtain key automatically (storage name must be accurate)
@@ -619,7 +611,16 @@ $bunny->closeConnection();
619
611
620
612
---
621
613
622
- ## Video streaming
614
+ ### Video streaming zone interaction
615
+
616
+ ``` php
617
+ require __DIR__ . '/vendor/autoload.php';
618
+
619
+ use Corbpie\BunnyCdn\BunnyAPIStream;
620
+
621
+ $bunny = new BunnyAPIStream();
622
+ ```
623
+ ---
623
624
624
625
** You can only get the video library id from your bunny.net stream library page**
625
626
0 commit comments