1 | <?php |
||
7 | class Stats extends WordpressApi |
||
8 | { |
||
9 | protected $base_uri = 'https://api.wordpress.org/stats/'; |
||
10 | |||
11 | /** |
||
12 | * Wordpress. |
||
13 | * |
||
14 | * Returns the stats for Wordpress. |
||
15 | * |
||
16 | * @return mixed |
||
17 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
18 | */ |
||
19 | public function wordpress() |
||
23 | |||
24 | /** |
||
25 | * PHP. |
||
26 | * |
||
27 | * Returns the stats for PHP. |
||
28 | * |
||
29 | * @return mixed |
||
30 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
31 | */ |
||
32 | public function php() |
||
36 | |||
37 | /** |
||
38 | * MySQL. |
||
39 | * |
||
40 | * Returns the stats for MySQL. |
||
41 | * |
||
42 | * @return mixed |
||
43 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
44 | */ |
||
45 | public function mysql() |
||
49 | |||
50 | /** |
||
51 | * Plugin. |
||
52 | * |
||
53 | * Returns the stats for a Plugin. |
||
54 | * |
||
55 | * @param $slug string The slug of the Plugin |
||
56 | * @return mixed |
||
57 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
58 | */ |
||
59 | public function plugin(string $slug) |
||
63 | |||
64 | /** |
||
65 | * Downloads. |
||
66 | * |
||
67 | * Returns the download stats for a Plugin. |
||
68 | * |
||
69 | * @param $slug string The slug of the Plugin |
||
70 | * @param $days int The number of days you want |
||
71 | * @return mixed |
||
72 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
73 | */ |
||
74 | public function plugin_downloads(string $slug, int $days) |
||
78 | } |
||
79 |